Page 1 of 1

Zend Guard Loader php56 and old glibc

Posted: Mon Jan 09, 2017 12:10 pm
by serg8536
Hello,

I have self-compiled php56 which build over centos5 (glibc 2.5)
I have downloaded zend-loader-php5.6-linux-i386 package
and it failed to run because it requires more fresh glibc
[root@alpaca-dev ~]# ldd /root/zend-loader-php5.6-linux-i386/ZendGuardLoader\.so
/root/zend-loader-php5.6-linux-i386/ZendGuardLoader\.so: /lib/i686/nosegneg/libc\.so\.6: version `GLIBC_2.7' not found (required by /root/zend-loader-php5.6-linux-i386/ZendGuardLoader\.so)
are any solutions to fix this problem ?
maybe zend provide binaries which support glibc 2.5 for centos 5 and php56

Thanks

Re: Zend Guard Loader php56 and old glibc

Posted: Mon Jan 09, 2017 8:45 pm
by zvika
Hello
There is no other build of Zend Loaders besides the default ones, tested against distro PHP of latest CentOS / Debian / Ubuntu / Windows / Mac versions (check system requirements of Zend Guard and Zend Server, which also includes Guard Loader builds in its runtime, upto PHP 5.6).
You can try to dynamically link new glibc to the binary, as you can do with missing libraries, but its (highly) not recommend and surely untested.

Hope this helps.

Re: Zend Guard Loader php56 and old glibc

Posted: Tue Jan 10, 2017 5:58 pm
by serg8536
I have access to cpanel + CloudLinux server


root@server [~]# cat /etc/redhat-release
CloudLinux Server release 5.11 (Vladislav Volkov)

root@server [~]# ldd --version
ldd (GNU libc) 2.5

root@server [~]# php -v
PHP 5.6.29 (cli) (built: Dec 28 2016 01:47:20)
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies

root@server [~]# ldd /usr/local/Zend/lib/Guard-7.0.0/php-5.6.x/ZendGuardLoader\.so
...
libc\.so\.6 => /lib/libc\.so\.6 (0x00e5a000)
...


I see that such binary of zend-guard-loader exists which linked agains old glibc + php56

I am not sure where cpanel got this binary
maybe it's some partnership with zend ?
is it possible to get such binary from zend for my own server ?

Thanks

Re: Zend Guard Loader php56 and old glibc

Posted: Tue Jan 10, 2017 7:13 pm
by zvika
There are no special builds or partnership, we do not support or endorse the mentioned control panel and cloud system.
The file path resembles a normal Guard Loader from Zend Guard 7 branch, for PHP 5.6

Re: Zend Guard Loader php56 and old glibc

Posted: Fri Apr 13, 2018 9:20 am
by jona701
zvika wrote:There are no special builds or partnership, we do not support or endorse the mentioned control panel and cloud system.
The file path resembles a normal Guard Loader from Zend Guard 7 branch, for PHP 5.6

so there is no other way to run the loader? here's my log

Code: Select all

[root@km zend-loader-php5.6-linux-i386]# php -v
Failed loading /usr/lib/php/modules/ZendGuardLoaderso:  /lib/libcso.6: version `GLIBC_2.7' not found (required by /usr/lib/php/modules/ZendGuardLoaderso)
PHP 5.6.30 (cli) (built: Jan 19 2017 08:12:18)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies