Now that PHP 5.4.0 packages have been published as preview, issues have to be fixed. That’s why these packages have been updated with the following changes :
- gzopen64() has been wrongly introduced on the i386 architecture, instead of the regular gzopen(). It is now fixed.
- PCRE functions did not support Unicode. That’s ok now.
- APC has been packaged as php5-apc against its svn/trunk version. It should now work well. Still waiting for an official release.
- Xdebug should appear very soon is now available in 2.2.0RC1 version.
Thanks for your useful reports.
53 replies on “Packages of PHP 5.4.0 have been updated”
apc fails to install
root@Debian-60-squeeze-64-minimal ~ # apt-get install php5-apc
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
php5-apc : Depends: php5-common (= 5.4.0-1~dotdeb.0) but 5.4.0-1~dotdeb.1 is to be installed
E: Broken packages
@pross : Ooops, this will be fixed in a few minutes, sorry.
@pross : fixed. Thanks for the report and for your patience.
Does be installed to the production server?
All working now 🙂 thx
@EPIC : it should work without any major issue now. Just don’t upgrade critical environments.
Oh! thanks for answer. And one more thing… SUHOSIN security patch has been applied?
@Epic : not yet
I know you do this on your free time and I’m very thankful. Any eta on when Suhosin will be applied?
@SociallyUncensored.eu : No idea. Watch this issue https://github.com/stefanesser/suhosin/issues/5
tu recommande de ne pas l’installer actuellement sans suhosin sur un serveur en production ?
@phil : Bonjour. C’est un long débat 🙂 Perso, j’attendrai d’être sûr que toutes mes applications critiques sont bien compatibles avec PHP 5.4 avant de le déployer en production. Pour le reste, Suhosin n’est pas vital, il faudra juste faire attention lorsqu’il sera activé dans les futurs paquets.
je suis actuellement avec ton paquet 5.3.10 donc j’attendrais ton paquet 5.4 quand tu le sentira près espérons que cela ne tarde pas trop
en tout cas bravo pour ton boulot
I have some serious problems when installing PHP5.4, everything but php5-mysql installs.
I’ve tried a couple of things, then I found out the php5dismod has an error when called as well. Seems the FOUND variable is not declared (true, because I removed the file).
Install-log : http://pastebin.com/Xmm6zW9a
php5dismod-log : http://pastebin.com/dEKiZ4xQ
The following partially installed packages will be configured:
php5-apc
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up php5-apc (5.4.0-1~dotdeb.1) …
/var/lib/dpkg/info/php5-apc.postinst: line 22: local: can only be used in a function
dpkg: error processing php5-apc (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for php5-fpm …
configured to not write apport reports
insserv: script vzquota: service vzreboot already provided!
Restarting PHP5 FastCGI Process Manager: php5-fpm.
Processing triggers for libapache2-mod-php5 …
Reloading web server config: apache2.
Errors were encountered while processing:
php5-apc
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up php5-apc (5.4.0-1~dotdeb.1) …
/var/lib/dpkg/info/php5-apc.postinst: line 22: local: can only be used in a function
dpkg: error processing php5-apc (–configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for php5-fpm …
insserv: script vzquota: service vzreboot already provided!
Restarting PHP5 FastCGI Process Manager: php5-fpm.
Processing triggers for libapache2-mod-php5 …
Reloading web server config: apache2.
Errors were encountered while processing:
php5-apc
Thanks for updating the Packages of PHP 5.4.0. I was searching Google for this update version. Now it closes to my hand and I’m impressed to find this update version. Thanks 🙂
What about php5-fpm in 5.4.0 version?
@Icytexx : it’s available… http://packages.dotdeb.org/dists/squeeze-php54/php5/binary-i386/
I just wanted to correct myself, I overlooked the packages. Sorry. 🙂
@Nils : thanks for your useful report. This issue will be fixed in the next packages.
Here is the fix : https://github.com/gplessis/dotdeb-php5/commit/82d4b47e379c339596d740551e498d32c717a23b
@Adam H : be sure to remove any /etc/php5/mods-available/*.dpkg-new file before installing php5-apc. Tell me if it solves your problem.
Looks like
deb http://php53.dotdeb.org oldstable all
deb-src http://php53.dotdeb.org oldstable all
does not work anymore since the beginning of March. I’d like to ask, was this done purposely, because of Debian Lenny end of life, or is it a bug?
@Renat : Lenny’s packages have been moved to http://archives.dotdeb.org/ and http://php53.dotdeb.org/ now redirects to http://packages.dotdeb.org/
I have the same problem as Nils.
php5-xdebug which is also affected.
Once the uninstall is not working!
@bRunO : same fix as Nils in /usr/bin/php5enmod https://github.com/gplessis/dotdeb-php5/commit/82d4b47e379c339596d740551e498d32c717a23b
This will be fixed in the next packages.
@Guillaume
I’ve already fix the “FOUND” line, I also have the *. dpkg-new files being deleted.
http://img6.imagebanana.com/img/r1sfrjwl/2012031911h48_09.png
@bRunO : does
touch /etc/php5/mods-available/mysqlnd.ini
touch /etc/php5/mods-available/xdebug.ini
apt-get install –reinstall php5-xdebug php5-mysqlnd
solve the problem?
xdebug now works, thanks!
php5-mysqlnd or php5-mysql still not installable
http://img7.imagebanana.com/img/h79hehbj/2012031912h18_05.png
@bRunO : you can’t install php5-mysql and php5-mysqlnd on the same machine. Please choose one.
i know, that was only a test – it does neither of the two!
i have the same problem. i can’t switch between php5-mysql and php5-mysqlnd
any ideas or updates? 🙁
@bRun0 : you can bypass each package’s {pre,post}{inst,rm} script by editing them in /var/lib/dpkg/info. I hope this will help.
mail() is hanging for me a lot and takes ages to complete :/
Might be my server though, just reinstalling everything.
Just ugpraded one of my servers since I had to install an extension anyway, and it looks like php5-apc is still broke and requires 5.3.10
@Chris : Did you upgrade to PHP 5.3.10 using this line in your sources.list :
deb http://packages.dotdeb.org squeeze all
Or did you upgrade to PHP 5.4.0 using this line in your sources.list :
deb http://packages.dotdeb.org squeeze-php54 all
Be sure to run “apt-get update” before “apt-get install php5-apc”
@Guillaume I was already on 5.3.10 using just the regular repo since I’m on Debian 6. I needed to install php5-gd and it complained about not having the correct packages. I ran `aptitude update && aptitude upgrade` to upgrade everything, and that brought me to PHP 5.4.0-2. During the install it told me that php5-apc would be removed.
I then installed php5-gd without any problems. I then tried to install php5-apc and it complained about unmet dependencies as it requires php5-common (=5.3.10-1~dotdeb.1).
It looks like some packages need 5.4.10 (like php5-odbc) and some need 5.3.10 (like ssh2), but since 5.4. is just released I’m not 100% which modules are updated and which aren’t.
I tried adding the php54 specific repos and I get the same thing.
@Chris : is your sources.list using only squeeze entries?
PHP 5.4.0-2 does not exist on Dotdeb. It exists in Debian testing or unstable. Could you please provide the output of “apt-cache policy php5 php5-apc”?
Chris certainly used wheezy(testing)
for apc on wheezy: “pecl install apc” 😉
Nope, you are right. I had an entry for sid in sources.list.d/ which I didn’t realize I had. Thanks!
Many thanks for pulling stuff from Debian, but actually never reporting found bugs and patches back. It has been so helpful…
Is it possible to install php 5.4 and keep 5.3 on the same machine? I only can find Tutorials for 5.2 and 5.3, but if i do it this way my 5.3 will be overwritten
@Rudi : it’s not possible with Debian or Dotdeb packages. Target binaries have the same name and dependencies prevents their installation on the same machine. Please consider using different servers/virtual machines.
@rudi you could install one as a debian package and the other from source in another location however. I have done that before having php 5.3 on the system with debian packages and php 5.2 available in /opt for compatibility with some older code.
Patch for Suhosin 0.9.33 for PHP 5.4
http://kpaste.net/4ee
@nelmaster_vc : thanks for the link
I’ve just installed php 5.4.7. PCRE appears not to be installed. pcretest gives “command not found”. I’m not sure where PCRE comes from so I don’t know how to install it. When I do, will PHP have PCRE UTF8 support according to you build configuration? Thanks.
@Paul Schwarz : PHP is installed by default with its bundled PCRE support. It is also not linked against your system’s libpcre.
– if your want to test PHP’s pcre support, display a phpinfo()
– if you want to test your system’s libpcre, install the libpcre3 package and launch pcretest
Both are independent.
This solved my problem as well. Thank you! 🙂
Hi, Where’s `apc.php` file suppose to be located?
@David : it’s not included in the package (yet). Download it from here : http://svn.php.net/viewvc/pecl/apc/trunk/apc.php?revision=325483&view=co
Magnificent goods from you, man. I’ve consider your stuff prior to and you
are simply extremely fantastic. I actually like what you’ve
received here, really like what you are stating and the
best way during which you are saying it. You are making it enjoyable and you continue to take
care of to stay it smart. I can not wait to read far
more from you. This is really a tremendous web site.