On january 17th 2013, the PHP group has released PHP 5.4.11 :
These releases fix about 10 bugs. All users of PHP are encouraged to upgrade to PHP 5.4.
The corresponding packages are now available on Dotdeb for Debian 6.0 “Squeeze” on both amd64 and i386 architectures, with these changes :
- APC has been upgraded to 3.1.14
- Xcache has been upgraded to 3.0.1 (now compatible with Ioncube)
- mysqlnd headers are now included in php5-dev to allow mysqlnd plugins to build
As usual, please read the ChangeLog before upgrading and be sure to use to the latest packages before reporting any issue.
Note 1 : PHP 5.3.21 packages will be available at the end of this week.
Note 2 : Including igbinary as serializer in PHP’s core and in the memcached and redis extensions is currently in progress.
37 replies on “PHP 5.4.11”
Whoaaa!!! What a great news: igbinary support included! This will make APC and memcache sessions WAY faster and smoother!
Thank you very much for including igbinary.
Info: http://phpolyk.wordpress.com/2011/08/28/igbinary-the-new-php-serializer/
I use igbinary to store my session data in memcached and I use igbinary as APC handler. Great performance gains! 🙂
@Hans : igbinary support is just a WIP (and it’ll also be a great improvement, you’re right). I hope to release it with the next PHP packages.
thanks Guillaume
great job!
FYI if upgrading to APC 3.1.14,
PHP may core dump if you have apc.lazy_functions and apc.lazy_classes enabled, which are options that were added in APC 3.1.13.
The script at “/usr/lib/php5/sessionclean” seems to be broken in this release. I’m getting emails from cron about lsof not being found (which was never installed on this system).
When trying to run the script manually, I get the following output:
/usr/lib/php5/sessionclean: 4: lsof: not found
find: warning: you have specified the -ignore_readdir_race option after a non-option argument -type, but options are not positional (-ignore_readdir_race affects tests specified before it as well as those specified after it). Please specify options before other arguments.
find: invalid argument `-delete’ to `-cmin’
This occurs on a Debian 6 server.
@packetwar : thanks for the feedback. I’ll introduce a dependency on lsof.
For me, APC 3.1.14 is contantly segfaulting, with default configuration on Squeeze. After a few requests APC start to segfault more often than not.
Guillame, is it enough to just include 5.4’s repo in sources and then upgrade (in order to upgrade from dotdeb’s 5.3)? I just double-checked all dependencies, and it pretty much should be alright, but I decided that it’s worth asking.
@ru_maniac : why more difficult? Yes, just upgrade with this new sources.list entry.
I’m getting Apache2 child seg faults too since installing the dotdeb PHP 5.4.11 package last night; APC 3.1.14, Libmemcached 1.0.13 and memcached 2.1.0
Disabling APC stops the seg faults.
Update: I’ve upgraded libmemcached to 1.0.15 and the seg faults have stopped (and APC isn’t fragmenting anymore either).
Apologies – the libmemcached upgrade is a red herring, please ignore.
I have since found (and tested) the problem – in apc.ini I had ‘apc.stat=0’ (default is 1) – when I changed back to the default value of 1 the seg faults disappeared.
hi with this http://chatme.im/phpinfo.php can i upgrade to php 5.4.x without problem or i must remove something?
@thomas : yes, you can upgrade safely. Be sure to read the migration guide before : http://php.net/manual/en/migration54.php
I upgraded yesterday but now I checked again and apc is 3.1.13. Did you changed anything? Thanks for your help!
@Julius : I silently downgraded APC to the 3.1.13 version. 3.1.14 is buggy
Alright, thank you!
I get still this bug with APC 3.1.13
When will it happen? With 5.4.12 release or earlier?
Wouldn’t it be too hard to make random minutes in /etc/cron.d/php5? $(($RANDOM % 30)) and 30 minutes later.
@Michael : already in git
https://github.com/gplessis/dotdeb-php5/commit/612fc0e03046347ebaad7d27229836e747a12b55
will appear in the next PHP packages (5.4.12 if no major flaw is dicovered in the current version).
Yes, I saw it. Just wanted to confirm my guess about 5.4.12.
What about random minutes in cron?
@Michael : what’s the point with random minutes? Spreading/delaying the io on virtualized systems?
Yes, actually it is.
Did you find a fix to this? I install lsof, but I’m still getting the “find: invalid argument `-delete’ to `-cmin’” error
Guillaume, please tell me:
1. Which version of the extension PECL/memcache is in the package named “php5-memcache_5.4.11-1~dotdeb.0_i386.deb”?
2. Extension php5-xcache has a web interface located in the “/usr/share/xcache/htdocs/” directory – ok. And it seems that extension PECL/memcache should have something similar – a file named “memcache.php” here:
http://svn.php.net/viewvc/pecl/memcache/tags/RELEASE_2_2_6/
But I can’t find it after install php5-memcache. So, why is it missing? What’s wrong with my installation?
Thanks in advance.
@Nestor :
1. memcache 3.0.7
2. it’s missing. Download it from here : http://svn.php.net/viewvc/pecl/memcache/tags/RELEASE_2_2_6/memcache.php?revision=303962&view=co
session.gc_probability must be 1, as recommended. With 0, sessions could create million of files until you run out of partition inodes. After instalation:
/etc/php5/fpm/php.ini
; Default Value: 1
; Development Value: 1
; Production Value: 1
; http://php.net/session.gc-probability
session.gc_probability = 0
@Daniel Ghe : did you read the “session storage” section of https://github.com/gplessis/dotdeb-php5/blob/squeeze-php54/debian/php5-common.README.Debian ? A cron is doing the job.
I have problems installing php54 from dotdeb.
root@testnix:/etc/apt# cat /etc/apt/sources.list
deb http://ftp.informatik.rwth-aachen.de/ftp/pub/Linux/debian/ squeeze main
deb-src http://ftp.informatik.rwth-aachen.de/ftp/pub/Linux/debian/ squeeze main
deb http://ftp.de.debian.org/debian squeeze main
deb-src http://ftp.de.debian.org/debian squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
# squeeze-updates, previously known as ‘volatile’
deb http://ftp.informatik.rwth-aachen.de/ftp/pub/Linux/debian/ squeeze-updates main
deb-src http://ftp.informatik.rwth-aachen.de/ftp/pub/Linux/debian/ squeeze-updates main
#dotdeb sources
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
deb http://packages.dotdeb.org squeeze-php54 all
deb-src http://packages.dotdeb.org squeeze-php54 all
After “aptitude update” I get following error:
Hole:25 http://packages.dotdeb.org squeeze-php54/all i386 Packages [9.650 B]
Es wurden 29,8 MB in 1 min 5 s geholt (456 kB/s)
Paketlisten werden gelesen… Fehler!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/packages.dotdeb.org_dists_squeeze_all_i18n_Translation-en
E: Die Paketliste oder die Statusdatei konnte nicht eingelesen oder geöffnet werden.
Any Ideas?? I am frustrated.
@Markus : try this :
Hi Guillaume,
I forgot to mention in my first posting that i already tried that approach as well. No change at all…
I did it again…
Result:
Hole:25 http://packages.dotdeb.org squeeze-php54/all i386 Packages [9.650 B]
Es wurden 29,8 MB in 1 min 5 s geholt (457 kB/s)
Paketlisten werden gelesen… Fehler!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/packages.dotdeb.org_dists_squeeze_all_i18n_Translation-en
E: Die Paketliste oder die Statusdatei konnte nicht eingelesen oder geöffnet werden.
Ok, now after doing a
“apt-get –fix-missing update -o APT::Cache-Limit=100000000”
I get this error message:
Es wurden 29,8 MB in 1 min 5 s geholt (457 kB/s)
Paketlisten werden gelesen… Fehler!
W: GPG-Fehler: http://packages.dotdeb.org squeeze Release: Die folgenden Signaturen waren ungültig: BADSIG E9C74FEEA2098A6E Guillaume Plessis
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/packages.dotdeb.org_dists_squeeze_all_i18n_Translation-en
E: Die Paketliste oder die Statusdatei konnte nicht eingelesen oder geöffnet werden.
Added your gpg key like explained here:
http://localhost:8080/2010/07/11/dotdeb-packages-are-now-signed/
and called
rm -f /var/lib/apt/lists/*
apt-get update again
No result.. 🙁
Any update on the 5.4.12 PHP version? http://php.net/archive/2013.php#id2013-02-21-1
David : I’m working on it. I’ll release 5.4.12 and 5.3.22 at the end of this week. I didn’t have much spare time these days, sorry.
Thank you, I was just about to ask for PHP 5.4.12 – Keep up the good job!