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
Checkout https://github.com/phalcon/cphalcon with branch v5.0.x
Move all interfaces, except ResultsetInterface from ext/phalcon/mvc/model/Resultset.zep to ext/phalcon/mvc/model/ResultsetInterface.zep (see code below)
Add missing use statements
try zephir fullclean && zephir build
The build fails with an error message:
cphalcon/ext/phalcon/mvc/model/resultsetinterface.zep.c:37:75: error: 'php_json_serializable_ce' undeclared (first use in this function)
37 | zend_class_implements(phalcon_mvc_model_resultsetinterface_ce, 1, php_json_serializable_ce);
Findings:
After digging into the problem, following things I found out:
In ext/mvc/model/Resultset.zep.c two header files are removed:
How to reproduce:
https://github.com/phalcon/cphalcon
with branchv5.0.x
ResultsetInterface
fromext/phalcon/mvc/model/Resultset.zep
toext/phalcon/mvc/model/ResultsetInterface.zep
(see code below)zephir fullclean && zephir build
The build fails with an error message:
Findings:
After digging into the problem, following things I found out:
In
ext/mvc/model/Resultset.zep.c
two header files are removed:but not added in
ext/mvc/model/ResultsetInterface.zep.c
Running all steps manually and adding the missing header files to
ext/mvc/model/ResultsetInterface.zep.c
will compile the extension without errorInfo:
Zephir Version: 1.6.0
PHP Version: 8.0, 8.1, 8.2, 8.3
Code:
The text was updated successfully, but these errors were encountered: