Bug #77717 [Opn->Wfx]: Tests can't be run with shared extensions
Edit report at https://bugs.php.net/bug.php?id=77717&edit=1
ID: 77717
Updated by: petk@php.net
Reported by: petk@php.net
Summary: Tests can't be run with shared extensions
-Status: Open
+Status: Wont fix
Type: Bug
Package: *Configuration Issues
Operating System: Linux
PHP Version: 7.2.16
Block user comment: N
Private report: N
New Comment:
Hello,
Closing this one as Won't fix since according to similar issues out there with one of the
extensions - mailparse - there was a decision that this is not meant to be fixed directly in the
core... Maybe some cases aren't that important with extensions or something I'm not sure,
but fixing this bug is quite related to that approach so meaning this can't be fixed either
then...
Previous Comments:
------------------------------------------------------------------------
[2019-03-10 13:09:41] petk@php.net
Description:
------------
When building PHP with shared extensions (common case when packaging it for Linux distributions)
several extensions depend on one another and the load order is important in the ini configuration
(extension=name.so). If for example the wddx.so extension is loaded before the xml.so, PHP emits
some warnings...
This is probably happening with several other extensions that depend on one another as well.
Solution might simply involve making a list of shared extensions in a proper order based on their
dependencies (PHP_MODULES in Makefile).
Test script:
---------------
./configure --disable-all --enable-wddx=shared --enable-xml=shared --enable-libxml
make
make test
Expected result:
----------------
Tests executed without warnings about missing extensions.
Actual result:
--------------
PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried:
/var/www/app/modules/wddx.so (Error relocating /var/www/app/modules/wddx.so:
php_XML_SetCharacterDataHandler: symbol not found), /var/www/app/modules/wddx.so.so (Error loading
shared library /var/www/app/modules/wddx.so.so: No such file or directory)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'wddx.so' (tried:
/var/www/app/modules/wddx.so (Error relocating /var/www/app/modules/wddx.so:
php_XML_SetCharacterDataHandler: symbol not found), /var/www/app/modules/wddx.so.so (Error loading
shared library /var/www/app/modules/wddx.so.so: No such file or directory)) in Unknown on line 0
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77717&edit=1
Thread (2 messages)