Control Web Panel
WebPanel => PHP => Topic started by: n8v8r on January 31, 2018, 09:45:08 PM
-
After server upgrade to PHP7.1 .0 this error pops up
[root@server batch]# rpm -qa php\* | sort; rpm -Va php\*; php -m
php-cli-5.4.16-43.el7_4.x86_64
php-common-5.4.16-43.el7_4.x86_64
php-composer-ca-bundle-1.0.2-1.el7.noarch
php-composer-semver-1.4.2-1.el7.noarch
php-composer-spdx-licenses-1.2.0-1.el7.noarch
php-fedora-autoloader-1.0.0-1.el7.noarch
php-fpm-5.4.16-43.el7_4.x86_64
php-gd-5.4.16-43.el7_4.x86_64
php-intl-5.4.16-43.el7_4.x86_64
php-jsonlint-1.6.1-1.el7.noarch
php-justinrainbow-json-schema5-5.2.6-1.el7.noarch
php-mbstring-5.4.16-43.el7_4.x86_64
php-paragonie-random-compat-1.4.1-1.el7.noarch
php-password-compat-1.0.4-1.el7.noarch
php-pdo-5.4.16-43.el7_4.x86_64
php-process-5.4.16-43.el7_4.x86_64
php-PsrLog-1.0.2-2.el7.noarch
php-seld-cli-prompt-1.0.3-1.el7.noarch
php-seld-phar-utils-1.0.1-1.el7.noarch
php-symfony-browser-kit-2.8.12-2.el7.noarch
php-symfony-class-loader-2.8.12-2.el7.noarch
php-symfony-common-2.8.12-2.el7.noarch
php-symfony-config-2.8.12-2.el7.noarch
php-symfony-console-2.8.12-2.el7.noarch
php-symfony-css-selector-2.8.12-2.el7.noarch
php-symfony-debug-2.8.12-2.el7.noarch
php-symfony-dependency-injection-2.8.12-2.el7.noarch
php-symfony-dom-crawler-2.8.12-2.el7.noarch
php-symfony-event-dispatcher-2.8.12-2.el7.noarch
php-symfony-expression-language-2.8.12-2.el7.noarch
php-symfony-filesystem-2.8.12-2.el7.noarch
php-symfony-finder-2.8.12-2.el7.noarch
php-symfony-http-foundation-2.8.12-2.el7.noarch
php-symfony-http-kernel-2.8.12-2.el7.noarch
php-symfony-polyfill-1.5.0-1.el7.noarch
php-symfony-process-2.8.12-2.el7.noarch
php-symfony-var-dumper-2.8.12-2.el7.noarch
php-symfony-yaml-2.8.12-2.el7.noarch
php-xml-5.4.16-43.el7_4.x86_64
Failed loading /usr/local/zend/5.6/ZendGuardLoader.so: /usr/local/zend/5.6/ZendGuardLoader.so: undefined symbol: zval_used_for_init
[PHP Modules]
bcmath
bz2
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gmp
hash
iconv
imagick
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
recode
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
-
downgraded to PHP7.0.10 and still getting the same error
-
downgraded to PHP5.6.33
rpm -qa php\* | sort; rpm -Va php\*; php -m
no issue reported
rpm -qa php-fpm\* | sort; rpm -Va php-cgi\*; php -m
no issue reported
rpm -qa php-fpm\* | sort; rpm -Va php-fpm\*; php -m
no issue reported
[root@server ~]# php-fpm -v
Failed loading /usr/local/zend/5.6/ZendGuardLoader.so: /usr/local/zend/5.6/ZendGuardLoader.so: undefined symbol: zval_used_for_init
PHP 7.0.10 (fpm-fcgi)
-
downgraded to PHP5.6.3 through the PHP switcher
rpm -qa php\* | sort; rpm -Va php\*; php -m
rpm -qa php-cgi\* | sort; rpm -Va php\*; php -m
rpm -qa php-fpm\* | sort; rpm -Va php\*; php -m
no issues reported
php -v
php-cgi -v
no issues reported
php-fpm -v
Failed loading /usr/local/zend/5.6/ZendGuardLoader.so: /usr/local/zend/5.6/ZendGuardLoader.so: undefined symbol: zval_used_for_init
PHP 7.0.10 (fpm-fcgi)
-
Removed all previously php compiled/installed versions from the php selector and rebuilt A/V/N servers just to get same result as the last.
How to get rid of this ZendGuardLoader.so issue? ???
-
that was brought on by the compiler/installer, so how to roll it back or fix it?
-
http://blog.zend.com/2016/10/10/zend-guard-and-php-7/#.WnMfK0xFzO4
after much deliberation, we’ve decided not to port Zend Guard to PHP 7 and beyond.
So why oh why then CWP is installing it along PHP7 in the first place? And unnecessarily causing this issue ???
And not responding of how cleaning it up?
-
rm -rf /usr/local/php/php.d/zend.ini
service httpd restart
run this commands and check
-
Thanks, a bit late for me now. As I could not get rid of the thing I meantime deployed a fresh CentOS image and installation of CWP 0.9.8.441.
Could you please state when it is safe again to upgrade the server to PHP7 without running into this issue?
-
you can upgrade it anytime, and this issue will be resolved on future version for now don't build php 5.5 and 5.6 with zen guard loader untill and unless you really need it.
-
I do not need it all and there is no compiler flag for php5.6
./configure
--prefix=/opt/alt/php56/usr
--with-zlib
--enable-soap
--enable-exif
--with-config-file-path=/opt/alt/php56/usr/php
--with-config-file-scan-dir=/opt/alt/php56/usr/php/php.d
--enable-phar
--enable-bcmath
--enable-calendar
--with-curl
--with-iconv
--with-mysql
--with-mysqli
--with-mysql=mysqlnd
--with-mysqli=mysqlnd
--with-mcrypt
--with-gettext
--with-xsl
--with-xmlrpc
--with-pdo-mysql=mysqlnd
--enable-posix
--enable-ftp
--with-openssl
--enable-mbstring
--with-jpeg-dir=/usr
--with-freetype-dir=/usr
--with-kerberos
--with-xsl
--with-bz2
--enable-sockets
--enable-zip
--with-gd
--with-imap
--with-imap-ssl
--enable-sockets
--with-pcre-regex
--with-libdir=lib64
--with-mysql-sock=/var/lib/mysql/mysql.sock
It apparently comes preinstalled by CWP. Since I just made the fresh installation and run php -v the output reads
PHP 5.6.30 (cli) (built: Jan 28 2017 14:24:05)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.8, Copyright (c) 2002-2016, by ionCube Ltd.
What about ioncube loader, is that necessity/dependency for CWP server/code?
-
php switcher/selector are intended to work with your scripts only
-
rm -rf /usr/local/php/php.d/zend.ini
service httpd restart
run this commands and check
Done, now on that fresh installation and checked and the error is gone but the zend engine/module is still present and might be automatically recompiled
[root@server src]# php -v
PHP 5.6.30 (cli) (built: Jan 28 2017 14:24:05)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.8, Copyright (c) 2002-2016, by ionCube Ltd.
[root@server src]# rpm -qa php\* | sort; rpm -Va php\*; php -m
php-cli-5.4.16-43.el7_4.x86_64
php-common-5.4.16-43.el7_4.x86_64
php-composer-ca-bundle-1.0.2-1.el7.noarch
php-composer-semver-1.4.2-1.el7.noarch
php-composer-spdx-licenses-1.2.0-1.el7.noarch
php-fedora-autoloader-1.0.0-1.el7.noarch
php-fpm-5.4.16-43.el7_4.x86_64
php-gd-5.4.16-43.el7_4.x86_64
php-intl-5.4.16-43.el7_4.x86_64
php-jsonlint-1.6.1-1.el7.noarch
php-justinrainbow-json-schema5-5.2.6-1.el7.noarch
php-mbstring-5.4.16-43.el7_4.x86_64
php-paragonie-random-compat-1.4.1-1.el7.noarch
php-password-compat-1.0.4-1.el7.noarch
php-pdo-5.4.16-43.el7_4.x86_64
php-process-5.4.16-43.el7_4.x86_64
php-PsrLog-1.0.2-2.el7.noarch
php-seld-cli-prompt-1.0.3-1.el7.noarch
php-seld-phar-utils-1.0.1-1.el7.noarch
php-symfony-browser-kit-2.8.12-2.el7.noarch
php-symfony-class-loader-2.8.12-2.el7.noarch
php-symfony-common-2.8.12-2.el7.noarch
php-symfony-config-2.8.12-2.el7.noarch
php-symfony-console-2.8.12-2.el7.noarch
php-symfony-css-selector-2.8.12-2.el7.noarch
php-symfony-debug-2.8.12-2.el7.noarch
php-symfony-dependency-injection-2.8.12-2.el7.noarch
php-symfony-dom-crawler-2.8.12-2.el7.noarch
php-symfony-event-dispatcher-2.8.12-2.el7.noarch
php-symfony-expression-language-2.8.12-2.el7.noarch
php-symfony-filesystem-2.8.12-2.el7.noarch
php-symfony-finder-2.8.12-2.el7.noarch
php-symfony-http-foundation-2.8.12-2.el7.noarch
php-symfony-http-kernel-2.8.12-2.el7.noarch
php-symfony-polyfill-1.5.0-1.el7.noarch
php-symfony-process-2.8.12-2.el7.noarch
php-symfony-var-dumper-2.8.12-2.el7.noarch
php-symfony-yaml-2.8.12-2.el7.noarch
php-xml-5.4.16-43.el7_4.x86_64
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mysql
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib
[Zend Modules]
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
-
downgraded to PHP5.6.3 through the PHP switcher
rpm -qa php\* | sort; rpm -Va php\*; php -m
rpm -qa php-cgi\* | sort; rpm -Va php\*; php -m
rpm -qa php-fpm\* | sort; rpm -Va php\*; php -m
no issues reported
php -v
php-cgi -v
no issues reported
php-fpm -v
Failed loading /usr/local/zend/5.6/ZendGuardLoader.so: /usr/local/zend/5.6/ZendGuardLoader.so: undefined symbol: zval_used_for_init
PHP 7.0.10 (fpm-fcgi)
The issue is fixed by the developer
thanks for reporting
-
php switcher/selector are intended to work with your scripts only
Sure, but I am not scripting the Zend engine/module into it, it comes preinstalled by CWP and what I can do about that?
-
you can learn more about zend engine : http://www.zend.com/products/zend_engine/in_depth