PHP 7.0.3 for Jessie

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 :

60 replies on “PHP 7.0.3 for Jessie”

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`

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?

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.



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
beta:~# php -m |grep memcache

But my wordpress doesn’t see them. See the screenshot :

Did you know what can be the problem?

Thank you

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.

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.

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.


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.

Yes I did, but APCu doesn’t show igbinary support. It looks like APCu doesn’t? “detect” igbinary availability.


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


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

Many thanks for the great works! I was wondering if the package php7.0-xcache is going to be available in a future update?

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 “

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()}'”;

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”.

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)

@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.

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



@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.

Comments are closed.