php-cp icon indicating copy to clipboard operation
php-cp copied to clipboard

Using php enabled "debug", cause compiling error

Open bukn opened this issue 8 years ago • 0 comments

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. php-cp-bug

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.

bukn avatar Feb 16 '17 07:02 bukn