
如题l/usr/local/php/bin/phpizel
./configure --with-php-config=/usr/local/php/bin/php-config 配置这一步没问题。
接下来是 make ,就出错了
/usr/local/php/include/php/Zend/zend_execute.h:294: note: expected ‘struct zend_string *’ but argument is of type ‘char *’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1264: error: too many arguments to function ‘zend_fetch_class’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1284: warning: cast to pointer from integer of different size
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1284: error: expected expression before ‘)’ token
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1291: error: too many arguments to function ‘php_mysqli_fetch_into_hash_aux’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1300: error: too many arguments to function ‘zend_merge_properties’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1305: error: incompatible types when assigning to type ‘zval’ from type ‘void *’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1307: error: ‘zend_fcall_info’ has no member named ‘object_ptr’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1308: error: ‘zend_fcall_info’ has no member named ‘retval_ptr_ptr’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1330: error: ‘zend_fcall_info_cache’ has no member named ‘object_ptr’
/usr/local/src/php-5.6.24/ext/mysqli/mysqli.c:1336: warning: passing argument 1 of ‘_zval_ptr_dtor’ from incompatible pointer type
/usr/local/php/include/php/Zend/zend_variables.h:112: note: expected ‘struct zval *’ but argument is of type ‘struct zval **’
make: *** [mysqli.lo] Error
转载于:https://blog.51cto.com/20151213start/1855692
本文记录了在使用PHP5.6.24源码包进行编译安装的过程中遇到的错误,主要集中在make阶段,涉及zend_execute.h文件中zend_fetch_class函数参数类型不匹配等问题。

478

被折叠的 条评论
为什么被折叠?



