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.3 install yaf-3.3.5、yaf-3.3.4 extenstion error:make: *** [Makefile:209: yaf.lo] Error 1 #588

Closed
Frank520520 opened this issue Dec 12, 2023 · 2 comments

Comments

@Frank520520
Copy link

make

/www/pkg/php_ext/yaf-3.3.5/yaf.c:253:9: error: expected ‘;’ before ‘int’
253 | ZEND_HOT int yaf_call_user_method(zend_object obj, zend_function fbc, int num_arg, zval *args, zval ret) / {{{ */ {
| ^~~~
| ;
/www/pkg/php_ext/yaf-3.3.5/yaf.c:305:9: error: expected ‘;’ before ‘int’
305 | ZEND_HOT int yaf_call_user_method_with_0_arguments(zend_object obj, zend_function fbc, zval ret) / {{{ */ {
| ^~~~
| ;
/www/pkg/php_ext/yaf-3.3.5/yaf.c:329:9: error: expected ‘;’ before ‘int’
329 | ZEND_HOT int yaf_call_user_method_with_1_arguments(zend_object obj, zend_function fbc, zval *arg, zval ret) / {{{ */ {
| ^~~~
| ;
/www/pkg/php_ext/yaf-3.3.5/yaf.c:355:9: error: expected ‘;’ before ‘int’
355 | ZEND_HOT int yaf_call_user_method_with_2_arguments(zend_object obj, zend_function fbc, zval *arg1, zval *arg2, zval ret) / {{{ */ {
| ^~~~
| ;
/www/pkg/php_ext/yaf-3.3.5/yaf.c:382:1: error: unknown type name ‘ZEND_HOT’; did you mean ‘ZEND_POW’?
382 | ZEND_HOT zend_string *yaf_build_camel_name(const char str, size_t len) / {{{ / {
| ^~~~~~~~
| ZEND_POW
/www/pkg/php_ext/yaf-3.3.5/yaf.c:382:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘
’ token
382 | ZEND_HOT zend_string *yaf_build_camel_name(const char str, size_t len) / {{{ */ {
| ^
/www/pkg/php_ext/yaf-3.3.5/yaf.c:442:1: error: unknown type name ‘ZEND_HOT’; did you mean ‘ZEND_POW’?
442 | ZEND_HOT zend_string *yaf_build_lower_name(const char str, size_t len) / {{{ / {
| ^~~~~~~~
| ZEND_POW
/www/pkg/php_ext/yaf-3.3.5/yaf.c:442:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘
’ token
442 | ZEND_HOT zend_string *yaf_build_lower_name(const char str, size_t len) / {{{ */ {
| ^
/www/pkg/php_ext/yaf-3.3.5/yaf.c:456:1: error: unknown type name ‘ZEND_HOT’; did you mean ‘ZEND_POW’?
456 | ZEND_HOT zend_string *yaf_canonical_name(int type, zend_string name) / {{{ / {
| ^~~~~~~~
| ZEND_POW
/www/pkg/php_ext/yaf-3.3.5/yaf.c:456:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘
’ token
456 | ZEND_HOT zend_string *yaf_canonical_name(int type, zend_string name) / {{{ */ {
| ^
/www/pkg/php_ext/yaf-3.3.5/yaf.c:480:9: error: expected ‘;’ before ‘void’
480 | ZEND_HOT void yaf_replace_chr(char name, uint32_t len, zend_uchar f, zend_uchar t) / {{{ */ {
| ^~~~~
| ;
make: *** [Makefile:209: yaf.lo] Error 1

@Frank520520
Copy link
Author

├── php_yaf.h
├── requests
│   └── yaf_request_simple.c
├── tests
│   ├── 031.phpt
│   └── issue231.phpt
├── views
│   └── yaf_view_simple.c
└── yaf_application.c

Just replace it and recompile it

@Frank520520 Frank520520 changed the title PHP8.3 install yaf-3.3.5、yaf-3.3.4 extenstion error PHP8.3 install yaf-3.3.5、yaf-3.3.4 extenstion error:make: *** [Makefile:209: yaf.lo] Error 1 Dec 12, 2023
@ryandesign
Copy link
Contributor

A fix for this was already submitted in #579.

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

3 participants