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

PHP8不支持TSRMLS_DC 和 TSRMLS_CC #143

Open
shrimpPaste opened this issue Sep 15, 2023 · 0 comments
Open

PHP8不支持TSRMLS_DC 和 TSRMLS_CC #143

shrimpPaste opened this issue Sep 15, 2023 · 0 comments

Comments

@shrimpPaste
Copy link

在执行make && make install 时候会报以下错误:
/home/php-beast/php-beast/beast.c:1502:75: error: expected ')' before 'TSRMLS_CC'
1502 | string = (char *)php_format_date(format, strlen(format), expire, 1 TSRMLS_CC);
| ~ ^~~~~~~~~~
| )
/home/php-beast/php-beast/beast.c: In function 'zif_beast_encode_file':
/home/php-beast/php-beast/beast.c:1529:47: error: expected ')' before 'TSRMLS_CC'
1529 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|ll",
| ~ ^~~~~~~~~
/home/php-beast/php-beast/beast.c:1529:9: error: too few arguments to function 'zend_parse_parameters'
1529 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "SS|ll",
这只是一小部分,我并不了解这个项目,查了相关的资料说是在php7.4以后删除了这些函数
所以导致我没办法正常make。

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

1 participant