Categories
PHP

PHP 5.6.5 for Wheezy

On January 22nd 2015, the PHP group released PHP 5.6.5.

This release fixes several bugs as well as CVE-2015-0231, CVE-2014-9427 and CVE-2015-0232. All PHP 5.6 users are encouraged to upgrade to this version. (…) The list of changes is recorded in the ChangeLog.

PHP 5.6.5 packages are now available on Dotdeb for Debian 7.7 “Wheezy”, on both amd64 and i386 architectures.

Notes :

  • Because of performance issues with Zend thread safety (pthreads depends on it), I had to disable it on the wheezy-php56 repo. Users using pthreads now have to use the wheezy-php56-zts repository instead. See the instructions for more details
  • Regression : php5-memcached still lacks JSON support
  • Missing packages : Xcache, Xdebug and Xhprof are still missing, I’m working on it
  • End of support : Spplus won’t be supported anymore. Pinba’s fate hasn’t been decided yet.

28 replies on “PHP 5.6.5 for Wheezy”

Hello,

after the update I get the following error.

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226/memcache.so’ – /usr/lib/php5/20131226/memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0

@Davor : could you please give us some more precise error to help diagnosing the problem? Thanks.

If you had custom PHP extension that you built yourself, you’ll have to rebuild them. ZTS has been disabled, so the extension_dir has changed.

phpinfo says extension directory is /usr/lib/php5/20131226. I recompiled Phalcon and phalcon.so is in the extensions directory. In php.ini I have the line extension=phalcon.so

absolutely no errors 🙂 rest of the applications that don’t run on Phalcon are working fine. php5 -v gives no errors as same as logs.

Strangest thing ever. After the upgrade was done and I manually stopped and started php5-fpm for XXX times, 2 processes were still left hanging. I’ve installed php5 again and have built Phalcon from scratch. It works now, except I’ve been getting errors that mcrypt is not available. I’ve created /etc/php5/fpm/conf.d/mcrypt.ini (put extension=mcrypt.so), restarted php5-fpm and everything seems to be working fine. Thanx!

Thanks for the update. Could you just tell me how to get this message off please ? Thanks 🙂

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226-zts/imagick.so’ – /usr/lib/php5/20131226-zts/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

Hi Guillaume,

Thanks a lot for your update 🙂 Do you know how to fix this bug with zmq pecl extension ?
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226-zts/zmq.so’ – /usr/lib/php5/20131226-zts/zmq.so: cannot open shared object file: No such file or directory in Unknown on line 0

It seems to be that zmq.so is installed by pecl in /usr/lib/php5/20100525+lfs/zmq.so
So, i’ve created a symbolic link from /usr/lib/php5/20100525+lfs/zmq.so to /usr/lib/php5/20131226-zts/zmq.so and then i’ve got this message :
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php5/20131226-zts/zmq.so’ – /usr/lib/php5/20131226-zts/zmq.so: undefined symbol: executor_globals in Unknown on line 0

Do you have an idea ? Am i doing wrong ?

Thx
Cédric

Thank for your reply.

I’ve rebuild the extension from github source but i still get this error 🙁

@JBGO : are you using the wheezy-php56 or the wheezy-php56-zts repo?

In doubt, you could run “apt-get install –reinstall” on all of your php-related packages to make sure that both PHP SAPIs and the extensions come from the same repo and that there’s no conflict in their extension_dir.

@Cédric : could you please check the value of extension_dir for each of your PHP binary and tell me what you see in your /usr/lib/php5/20131226-zts/ and /usr/lib/php5/20131226/ directories?

Hi Guillaume,

Thanks for your reply.

PHP CLI :
extension_dir => /usr/lib/php5/20131226-zts

PHP CGI :
/usr/lib/php5/20131226-zts

root@dev:/etc/php5/cli# ls -lh /usr/lib/php5/20131226-zts/
total 1,2M
-rw-r–r– 1 root root 86K janv. 25 20:46 curl.so
-rw-r–r– 1 root root 395K janv. 25 20:46 gd.so
-rw-r–r– 1 root root 42K janv. 25 20:46 mcrypt.so
-rw-r–r– 1 root root 135K janv. 25 20:46 mysqli.so
-rw-r–r– 1 root root 50K janv. 25 20:46 mysql.so
-rw-r–r– 1 root root 143K janv. 25 20:46 opcache.so
-rw-r–r– 1 root root 31K janv. 25 20:46 pdo_mysql.so
-rw-r–r– 1 root root 107K janv. 25 20:46 pdo.so
-rw-r–r– 1 root root 108K févr. 1 20:19 pthreads.so
-rw-r–r– 1 root root 26K janv. 25 20:46 readline.so
lrwxrwxrwx 1 root root 33 févr. 3 01:23 zmq.so -> /usr/lib/php5/20100525+lfs/zmq.so

ls -lh /usr/lib/php5/20131226/
ls: impossible d’accéder à /usr/lib/php5/20131226/: Aucun fichier ou dossier de ce type

Hi, first thing I want to say: great job maintaining this repository.
I had the need to use pthreads and ev, so i was compiling from pecl, then I found out dotdeb already has pthreads. I would be great to see php5-ev as well.

I’ve tried PHP 5.5.X from your repo, but I believe it lacks ZTS option enabled (tried apt-get source and didn’t see the flag inside debian/rules), hence after repo install I couldn’t install pthreads.
I hoped I could use php5.5 with zts enabled, since 5.6 has performance issues.

@Michael : If you care about performance, don’t use ZTS at all, it involves a 15% performance drop, whatever PHP’s branch.

If you want ZTS from Dotdeb packages anyway, along with the php5-pthreads package, please consider upgrading to PHP 5.6 and using the wheezy-php56-zts repo.

Comments are closed.