php-cp
php-cp copied to clipboard
Using php enabled "debug", cause compiling error
PHP version 7.0.9, build with:
$ ./configure --enable-debug --enable-maintainer-zts
Then, rebuild php-cp, make clean, execute phpize, then make. Got error as picture shows.
I've read msgpack7/swoole_serialize.c where error occured. The problem caused by line 614:
_zend_hash_init(ht, zend_hash_num_elements(Z_ARRVAL(retval)), ZVAL_PTR_DTOR, 0 ZEND_FILE_LINE_RELAY_CC);
The macro transfered to variable that never declared when debug mode enabled.