'Has anyone successfully built a PHP 8.x wrapper for OpenBabel
About 6 months ago we built the PHP wrapper for OpenBabel in PHP 7.4.x and successfully integrated it into our web application. With PHP 7.4.x EOL occurring in Nov 2022 we are migrating to PHP 8.1.x and have not been successful in building the wrapper.
We have opened an issue SWIG #2270 and just received a response from the maintainer of SWIG:
[PHP] #1982 #1457 https://sourceforge.net/p/swig/bugs/1339/ SWIG now only use PHP's C API to implement its wrappers, and no longer generates PHP code to define classes. The wrappers should be almost entirely compatible with those generated before, but faster and without some previously hard-to-fix bugs.
The main notable difference is SWIG no longer generates a .php wrapper at all by default (only if %pragma(php) code=... or %pragma(php) include=... are specified in the interface file). This also means you need to load the module via extension=... in php.ini, rather than letting the dl() in the generated .php wrapper load it (but dl() has only worked for command-line PHP for some years now).
Trying to fully understand.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
