You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if both flags are supported together, if not it should fail at configure and not when compiling as it took me a while to figure out the issue.
For reference, the compilation error is as follows:
In file included from /home/girgias/dev/php-src/sapi/fuzzer/fuzzer-unserialize.c:22:
In file included from /home/girgias/dev/php-src/main/php_main.h:22:
/home/girgias/dev/php-src/main/php_globals.h:28:8: error: unknown type name 'PHPAPI'
28 | extern PHPAPI int core_globals_id;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:8: error: unknown type name 'PHPAPI'
29 | extern PHPAPI size_t core_globals_offset;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:21: error: expected ';' after top level declarator
29 | extern PHPAPI size_t core_globals_offset;
| ^
| ;
3 errors generated.
make: *** [Makefile:502: sapi/fuzzer/fuzzer-unserialize.lo] Error 1
make: *** Waiting for unfinished jobs....
In file included from /home/girgias/dev/php-src/sapi/fuzzer/fuzzer-unserializehash.c:20:
In file included from /home/girgias/dev/php-src/main/php_main.h:22:
/home/girgias/dev/php-src/main/php_globals.h:28:8: error: unknown type name 'PHPAPI'
28 | extern PHPAPI int core_globals_id;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:8: error: unknown type name 'PHPAPI'
29 | extern PHPAPI size_t core_globals_offset;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:21: error: expected ';' after top level declarator
29 | extern PHPAPI size_t core_globals_offset;
| ^
| ;
3 errors generated.
In file included from /home/girgias/dev/php-src/sapi/fuzzer/fuzzer-json.c:24:
In file included from /home/girgias/dev/php-src/main/php_main.h:22:
/home/girgias/dev/php-src/main/php_globals.h:28:8: error: unknown type name 'PHPAPI'
28 | extern PHPAPI int core_globals_id;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:8: error: unknown type name 'PHPAPI'
29 | extern PHPAPI size_t core_globals_offset;
| ^
/home/girgias/dev/php-src/main/php_globals.h:29:21: error: expected ';' after top level declarator
29 | extern PHPAPI size_t core_globals_offset;
| ^
| ;
3 errors generated.
make: *** [Makefile:508: sapi/fuzzer/fuzzer-json.lo] Error 1
PHP Version
master
Operating System
No response
The text was updated successfully, but these errors were encountered:
Including php.h instead of php_main.h would fix the build, but then you'd still need to initialize the tsrm before calling sapi_startup.
After doing that it gets as far as into request startup where it crashes on a bogus pointer.
This couldn't have ever worked.
Description
I am not sure if both flags are supported together, if not it should fail at
configure
and not when compiling as it took me a while to figure out the issue.A simple reproducible configure command is:
For reference, the compilation error is as follows:
PHP Version
master
Operating System
No response
The text was updated successfully, but these errors were encountered: