Upgrade to Pro — share decks privately, control downloads, hide ads and more …

5 Smashing Changes Your Extension Will Encounte...

Avatar for Rize MISUMI Rize MISUMI
November 24, 2015

5 Smashing Changes Your Extension Will Encounter #phpblt

at PHP BLT (11/24)

Avatar for Rize MISUMI

Rize MISUMI

November 24, 2015
Tweet

More Decks by Rize MISUMI

Other Decks in Programming

Transcript

  1. Note When installing extesions from GitHub, pickle is suitable https://github.com/FriendsOfPHP/pickle

    ./bin/pickle install https://github.com/php-memcached-dev/php-memcached.git#php7
  2. zval → zval** Z_*_PP() is obsolete → Change to use

    zval* → PHP7 frequently uses zval directly → ALLOC_ZVAL, ALLOC_INIT_ZVAL, MAKE_STD_ZVAL has removed
  3. zend_string → Replacement of char* and int length → Many

    of PHP's API using char* has replaced to zend_string
  4. HashTable → Most API returns values, not SUCCESS, FAILURE →

    char*, length based API (similar to PHP5) remains → But length is changed to exclude trailing zero