On February 4th 2016, the PHP group published PHP 7.0.3.
This is a security release. Several security bugs were fixed in this release. All PHP 7.0 users are encouraged to upgrade to this version.
Packages of PHP 7.0.3 are now available for Debian 8 “Jessie” on amd64 and i386 architectures.
Please note that :
- PHP 7 and PHP 5 from Jessie are now co-installable on the same machine
- Packages of the following PECL extensions are now available : APCu, APCu_bc, igbinary, imagick, memcached, mongodb, msgpack, redis and xdebug. Careful, PHP 7 support from some of them is still very young.
- the memcached.serializer is now igbinary by default. You should change it back to php if you’re upgrading from a previous version.
- The thread-safe version of all these packages will be published soon.
As usual :
- your feedbacks are always welcome. Just make sure they are useful.
- feel free to show your support, it is always greatly appreciated… 🙂
60 replies on “PHP 7.0.3 for Jessie”
thank you, great job!
Awesome! Thank you so much for you great work. Keep it up! 🙂
Can i use this on a debian 7.9? im using
wheezy-php56 repo and want to try php7 (without loosing php5)
Installing `php7.0-mongodb` results in Segmentation fault: zend_mm_heap corrupted
I disabled it using `phpdismod -v ALL -s fpm mongodb`
@DragoÈ™ AI : thanks for the report. I’ll investigate.
@Luis : sorry but no, you can’t.
Thank you!
I found two bugs in the new extensions:
– https://github.com/igbinary/igbinary/issues/60
– https://github.com/krakjoe/apcu-bc/issues/14
@szicsu : thanks for your feedback. I’m now watching these issues aqnd I’ll provide new packages once they have been fixed.
Hi! When will support for memcache and phear ?
@Yuriy : the memcache PECL extension is not maintained anymore, you should switch to memcached. And what do you mean by phear? PEAR? Phar?
Yes I meant PEAR. Sorry for my English.
require_once ‘phar://yandex-php-library_master.phar/vendor/autoload.php’;
This flow displays this error:
PHP Warning: require_once(phar://yandex-php-library_master.phar/vendor/autoload.php): failed to open stream: phar error: invalid url or non-existent phar “phar://yandex-php-library_master.phar/vendor/autoload.php” in /home/admin/sitebackup.php on line 10
How to fix it?
Memcache on for php7 https://github.com/websupport-sk/pecl-memcache/tree/php7
@Yuriy : I could package it if the changes are applied upstream by the official maintainers (https://pecl.php.net/package/memcache). Feel free to open or complete a feature request there.
Thanks.
PHP 7.0.3 is working great on Debian Jessie with Apache 2.4 and php-fpm.
Thanks for the great job of packaging it for us.
However I have a problem with the APCu module (php7.0-apcu) that does not work anymore with OwnCloud. I also installed the APC module (php7.0-apc) but OwnCloud is not seeing the APCu cache.
Yan.
@Guillaume,
Thank you for this update. Like @Yannick I got the same problem with apcu and memcached but on wordpress. The modules are enabled :
beta:~# php -m |grep apc
apcu
beta:~# php -m |grep memcache
memcached
But my wordpress doesn’t see them. See the screenshot : http://imgur.com/BydYKWD
Did you know what can be the problem?
Thank you
Hi.
Compile the memcache from here https://github.com/websupport-sk/pecl-memcache/tree/NON_BLOCKING_IO_php7
It works great.
@Yuriy,
Thank you! Really works great! 🙂
Thanks @Yuriy for your suggestion. Unfortunately this is on a production server and the security policy does not allows me to have development tools on a production server.
Also, for the same reason I need the updates to be automatically installable and that’s why I’m going with the dotdeb packages, not a self-compiled instance of PHP 7.
How can I revert the default php cli binary to be php5 and not php7 while keeping both?
Rafael, the /usr/bin/php is just a symlink that point to /etc/alternatives/php which in turn point to the real binary /usr/bin/php7.0 .
You can set your own link as you like or just call directly the binary /usr/bin/php5 .
My set up as php5 and php7.0 both using php-fpm and it works great.
@Rafael : you can use these commands to update the php-cli symlink according to your needs :
@Nikolay Nikolov : please try to install php7.0-apcu-bc
That’s the solution I was looking for, thanks
Guillaume,
In my case apcu-bc was automatically installed with the pac and apcu package. Still it does not work.
Thanks for suggesting.
Yan.
@Guillaume, thank you. In my case this do the trick! Now my wordpress can see APC! 🙂
Hi Guillaume,
Would it be possible for you to include the ssh2 module for PHP7 in your next release? It’s the last missing module that we need and our provider depends on your wonderful work.
Thanks!
When I do php –ri igbinary I get:
igbinary APC serializer ABI => no
and php –ri apcu shows:
Serialization Support => php
any idea why?
In PHP 5.6 (debian package) phpinfo() shows igbinary APC serializer ABI => 0, so maybe it isn’t important but APCu serialization support shows php and igbinary. But PHP 7.0.3 (dotdeb package) phpinfo() APCu serialization support shows php only.
@Paul : have you tried to set apc.serializer=igbinary in etc/php/7.0/cli/conf.d/20-apcu.ini ?
Thanks Guillaume for your suggestion.
It worked for me with OwnCloud. I will see how to notify the OwnCloud maintainers.
Yan.
Is the package compiled with –enable-opcache-file flag?
Yes I did, but APCu doesn’t show igbinary support. It looks like APCu doesn’t? “detect” igbinary availability.
Hi,
I need to use pdo-oci option.
How can i add function when i install php7 with dotdeb repository ?
I try to compile php7 from source, but too much errors
Thanks.
What about xhprof?
Ok, I think I’ve found why it doesn’t work it’s simply disabled in igbinary (https://github.com/igbinary/igbinary7/blob/master/igbinary.c#L25) it looks that igbinary isn’t 100% compatible with PHP 7
Thank you for the hard work, I’m using dotdeb packages to build the base container at phpdocker.io.
Hello, I have a lot of those errors on my server with your version of PHP 7.0.3
WARNING: [pool www] child 9231 exited on signal 11 (SIGSEGV) after 237.213480 seconds from start
Can it be linked to Dotdeb, or is it only related to PHP itself?
Would it be possible to re-build all packages against the updated glibc on Debian? This should address CVE-2015-7547, the stagefright-level glibc bug which is serious business
@Luis : what’s the point since packages are dynamically linked to libc6? Just upgrade your libc6 packages and restart the services to be safe.
Many thanks for the great works! I was wondering if the package php7.0-xcache is going to be available in a future update?
Great! Thank you for maintaining dotdeb.org!
@james, xcache not support php 7.0
It seems that xdebug not working since it crash calling with coverage.
Hello Guillaume, Thank you for your great work as well.
Just a quick question. Any chance to see a geoip module soon for PHP 7? 🙂
Thank You for your great work!
Nevertheless i have an issue with mongodb …. it is installed via apt-get install php7.0-mongodb. It is also loaded as phpinfo() is showing. But scripts using mongo die with: “PHP Fatal error: Uncaught Error: Class ‘MongoClient’ not found “
Dwarfex, MongoClient() is deprecated, use MongoDB class.
Neither MongoDB() or Mongo() are found.
Shouldn’t this code work? :
$client = new MongoDB(“mongodb://localhost:27017”);
$collection = $client->demo->beers;
$result = $collection->insertOne( [ ‘name’ => ‘Hinterland’,$
echo “Inserted with Object ID ‘{$result->getInsertedId()}'”;
HEllo,
Is there any plan to build the RRD extension?
Hi Guillaume!
Thank you for your work!
I would like to know, are there any differences between dotdeb packages of PHP 7.0.3 and packages from testing (stretch) Debian repository? Your version is displayed as “7.0.3-1~dotdeb+8.1”, stretch version – as “7.0.3-5”.
Hey, thanks for the awesome work!
Would it be possible to add arm/raspbian builds?
Thanks,
Ivan
I have noticed a problem with php7.0-dev package. It depends on some old PHP5-packages: php-pear, php5-cli, php5-common, php5-json, php5-readline. I need dev package to compile phpredis extension (which is already support PHP 7.0)
@Ivan : unfortunately, I have no plan for this in a near future.
@Yuri : that’s not really a problem and this could be definitely fixed in a future release. In the meantime, try to use apt-get install --no-install-recommends php7.0-dev.
And FYI, phpredis is available as php7.0-redis.
@Yuri : some more patches are present in the Stretch version and a few minor compile options are different, since I’m mostly following the packaging scheme from Sid.
@AnthorNet : unfortunately no
Thank you very much!!!
Hi & thanks for all!
Have you plan to build php7.0-pear ? will be great still manage modules via pecl
Have you an idea of date for
php7.0-apcu
php7.0-geoip
php7.0-mysqlnd
php7.0-redis
php7.0-xdebug
?
@Bouffe : please read the above post. APCu, Redis and Xdebug are already available. MySQLnd is the default binding for php7.0-mysql and I’m still working on geoip.