swoole/phpx

PHP 7.3: make -j 4 報錯

chivincent opened this issue · 1 comments

PHP 7.3: make -j 4 報錯
Scanning dependencies of target phpx
[  9%] Building CXX object CMakeFiles/phpx.dir/src/class.o
[ 18%] Building CXX object CMakeFiles/phpx.dir/src/base.o
[ 27%] Building CXX object CMakeFiles/phpx.dir/src/string.o
/home/chivincent/tmp/PHP-X/src/string.cc: In member function 「php::String php::String::addSlashes()」:
/home/chivincent/tmp/PHP-X/src/string.cc:103:36: 錯誤:too many arguments to function 「zend_string* php_addslashes(zend_string*)」
return php_addslashes(value, false);
^
In file included from /usr/include/php/ext/standard/php_standard.h:21,
from /home/chivincent/tmp/PHP-X/include/phpx.h:48,
from /home/chivincent/tmp/PHP-X/src/string.cc:19:
/usr/include/php/ext/standard/php_string.h:131:21: 附註:declared here
PHPAPI zend_string *php_addslashes(zend_string *str);
^~~~~~~~~~~~~~
/home/chivincent/tmp/PHP-X/src/class.cc: In member function 「bool php::Class::activate()」:
/home/chivincent/tmp/PHP-X/src/class.cc:226:75: 錯誤:too few arguments to function 「int zend_register_class_alias_ex(const char*, size_t, zend_class_entry*,int)」
if (zend_register_class_alias_ex(alias.c_str(), alias.length(), ce) < 0)
^
In file included from /usr/include/php/main/php.h:37,
from /home/chivincent/tmp/PHP-X/include/phpx.h:23,
from /home/chivincent/tmp/PHP-X/src/class.cc:19:
/usr/include/php/Zend/zend_API.h:289:14: 附註:declared here
ZEND_API int zend_register_class_alias_ex(const char *name, size_t name_len, zend_class_entry *ce, int persistent);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/phpx.dir/build.make:167: CMakeFiles/phpx.dir/src/string.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/chivincent/tmp/PHP-X/src/base.cc: In function 「int php::validate_constant_array(HashTable*)」:
/home/chivincent/tmp/PHP-X/src/base.cc:74:13: 錯誤:「struct _zend_array::<unnamed union>::<unnamed>」 has no member named 「nApplyCount」
ht->u.v.nApplyCount++;
^~~~~~~~~~~
/home/chivincent/tmp/PHP-X/src/base.cc:84:46: 錯誤:「struct _zend_array::<unnamed union>::<unnamed>」 has no member named 「nApplyCount」
if (Z_ARRVAL_P(val)->u.v.nApplyCount > 0)
^~~~~~~~~~~
/home/chivincent/tmp/PHP-X/src/base.cc:106:13: 錯誤:「struct _zend_array::<unnamed union>::<unnamed>」 has no member named 「nApplyCount」
ht->u.v.nApplyCount--;
^~~~~~~~~~~
/home/chivincent/tmp/PHP-X/src/base.cc: In function 「bool php::define(const char*, const php::Variant&, bool)」:
/home/chivincent/tmp/PHP-X/src/base.cc:211:26: 錯誤:「zend_constant」 {aka 「struct _zend_constant」} has no member named 「flags」
register_constant: c.flags = case_sensitive ? CONST_CS : 0; /* non persistent */
^~~~~
/home/chivincent/tmp/PHP-X/src/base.cc:213:7: 錯誤:「zend_constant」 {aka 「struct _zend_constant」} has no member named 「module_number」
c.module_number = PHP_USER_CONSTANT;
^~~~~~~~~~~~~
/home/chivincent/tmp/PHP-X/src/base.cc: In function 「ZEND_RESULT_CODE php::_check_args_num(zend_execute_data*, int)」:
/home/chivincent/tmp/PHP-X/src/base.cc:342:82: 錯誤:too many arguments to function 「void zend_wrong_parameters_count_error(int, int)」
zend_wrong_parameters_count_error(1, num_args, min_num_args, max_num_args);
^
In file included from /usr/include/php/main/php.h:37,
from /home/chivincent/tmp/PHP-X/include/phpx.h:23,
from /home/chivincent/tmp/PHP-X/src/base.cc:19:
/usr/include/php/Zend/zend_API.h:701:39: 附註:declared here
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_error(int min_num_args, int max_num_args);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/phpx.dir/build.make:89: CMakeFiles/phpx.dir/src/class.o] Error 1
make[2]: *** [CMakeFiles/phpx.dir/build.make:76: CMakeFiles/phpx.dir/src/base.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/phpx.dir/all] Error 2
make: *** [Makefile:130: all] Error 2