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
It looks like between PHP 7 and PHP 8 the return code of zend_prepare_string_for_scanning() was changed from "int" to "void", see includes/php/Zend/zend_language_scanner.h for the respective installation.
The text was updated successfully, but these errors were encountered:
TurtleWilly
changed the title
Fails to Compile with PHP 8 includes (nchanged prototype for "zend_prepare_string_for_scanning()")
Fails to Compile with PHP 8 includes (changed prototype for "zend_prepare_string_for_scanning()")
Jun 18, 2023
It looks like between PHP 7 and PHP 8 the return code of
zend_prepare_string_for_scanning()
was changed from "int" to "void", seeincludes/php/Zend/zend_language_scanner.h
for the respective installation.PHP 7:
ZEND_API int zend_prepare_string_for_scanning(zval *str, char *filename);
PHP 8:
ZEND_API void zend_prepare_string_for_scanning(zval *str, zend_string *filename);
Naturally this breaks compilation with the following construct in the php-ast code base. It also triggers some warnings for the filename type.
The text was updated successfully, but these errors were encountered: