Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make error #12

Open
xiaolin2843 opened this issue Oct 24, 2017 · 3 comments
Open

make error #12

xiaolin2843 opened this issue Oct 24, 2017 · 3 comments

Comments

@xiaolin2843
Copy link

php version 7.1.9

/usr/local/src/php-ext-trie-filter/trie_filter.c:82:34: 错误:未知的类型名‘_zend_rsrc_list_entry’
static void php_trie_filter_dtor(_zend_rsrc_list_entry *rsrc TSRMLS_DC)
^
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zm_startup_trie_filter’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:93:4: 错误:‘php_trie_filter_dtor’未声明(在此函数内第一次使用)
php_trie_filter_dtor,
^
/usr/local/src/php-ext-trie-filter/trie_filter.c:93:4: 附注:每个未声明的标识符在其出现的函数内只报告一次


/* }}} */
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zif_trie_filter_search’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:244:28: 错误:expected expression before ‘Trie’
ZEND_FETCH_RESOURCE(trie, Trie *, &trie_resource, -1,
^
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zif_trie_filter_search_all’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:292:28: 错误:expected expression before ‘Trie’
ZEND_FETCH_RESOURCE(trie, Trie *, &trie_resource, -1,
^
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zif_trie_filter_store’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:360:28: 错误:expected expression before ‘Trie’
ZEND_FETCH_RESOURCE(trie, Trie *, &trie_resource, -1, PHP_TRIE_FILTER_RES_NAME, le_trie_filter);
^
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zif_trie_filter_save’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:392:31: 错误:expected expression before ‘Trie’
ZEND_FETCH_RESOURCE(trie, Trie *, &trie_resource, -1, PHP_TRIE_FILTER_RES_NAME, le_trie_filter);
^
/usr/local/src/php-ext-trie-filter/trie_filter.c: 在函数‘zif_trie_filter_free’中:
/usr/local/src/php-ext-trie-filter/trie_filter.c:411:31: 错误:expected expression before ‘Trie’
ZEND_FETCH_RESOURCE(trie, Trie *, &trie_resource, -1, PHP_TRIE_FILTER_RES_NAME, le_trie_filter);
^
/usr/local/src/php-ext-trie-filter/trie_filter.c:413:5: 警告:传递‘zend_list_delete’的第 1 个参数时将整数赋给指针,未作类型转换 [默认启用]
if (zend_list_delete(resource_id) == SUCCESS) {
^

@lmxdawn
Copy link

lmxdawn commented Dec 12, 2017

同问

@NLison
Copy link

NLison commented Jan 3, 2018

很明显某些底层函数 , PHP7并不支持

@yuanyinghao
Copy link

php7的源码可以去复习一下,_zend_rsrc_list_entry 在php7里面已经不支持了,可以自己改一下扩展的源码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants