Posted by & filed under PHP.

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 Responses to “PHP 7.0.3 for Jessie”

  1. luis

    Can i use this on a debian 7.9? im using
    wheezy-php56 repo and want to try php7 (without loosing php5)

  2. Dragoș AI

    Installing `php7.0-mongodb` results in Segmentation fault: zend_mm_heap corrupted
    I disabled it using `phpdismod -v ALL -s fpm mongodb`

  3. Yuriy

    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?

  4. Yannick

    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.

  5. Nikolay Nikolov

    @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

  6. Yannick

    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.

  7. Rafael Montagud

    How can I revert the default php cli binary to be php5 and not php7 while keeping both?

  8. Yannick

    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.

  9. Guillaume Plessis

    @Rafael : you can use these commands to update the php-cli symlink according to your needs :

    update-alternatives --list php-cli
    update-alternatives --set php-cli /usr/bin/php5-cli
    
  10. Yannick

    Guillaume,
    In my case apcu-bc was automatically installed with the pac and apcu package. Still it does not work.
    Thanks for suggesting.
    Yan.

  11. Peter Ward

    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!

  12. Paul

    When I do php –ri igbinary I get:
    igbinary APC serializer ABI => no
    and php –ri apcu shows:
    Serialization Support => php
    any idea why?

  13. Paul

    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.

  14. Yannick

    Thanks Guillaume for your suggestion.
    It worked for me with OwnCloud. I will see how to notify the OwnCloud maintainers.
    Yan.

  15. Paul

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

  16. MTSV

    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.

  17. Luis

    Thank you for the hard work, I’m using dotdeb packages to build the base container at phpdocker.io.

  18. Pfx2

    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?

  19. Luis

    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

  20. james

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

  21. Tim

    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? 🙂

  22. Dwarfex

    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 “

  23. Dwarfex

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

  24. Yuri

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

  25. Ivan

    Hey, thanks for the awesome work!
    Would it be possible to add arm/raspbian builds?
    Thanks,
    Ivan

  26. Yuri

    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)

  27. Guillaume Plessis

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

  28. Guillaume Plessis

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

  29. ark

    Hi & thanks for all!
    Have you plan to build php7.0-pear ? will be great still manage modules via pecl

  30. Bouffe

    Have you an idea of date for

    php7.0-apcu
    php7.0-geoip
    php7.0-mysqlnd
    php7.0-redis
    php7.0-xdebug

    ?

  31. Guillaume Plessis

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