Bug #77717 [NEW]: Tests can't be run with shared extensions
From: petk
Operating system: Linux
PHP version: 7.2.16
Package: *Configuration Issues
Bug Type: Bug
Bug description:Tests can't be run with shared extensions
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 bug report at https://bugs.php.net/bug.php?id=77717&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77717&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77717&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77717&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77717&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77717&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77717&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77717&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77717&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77717&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77717&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77717&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77717&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77717&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77717&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77717&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77717&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77717&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77717&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77717&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77717&r=mysqlcfg
Thread (2 messages)
- petk@php.net