php-wddx starting error in v2.5.x
PHP 5.3.18 (cgi-fcgi) (built: Oct 23 2012 20:19:19)
$ apk add php-apache2 php-xml php-wddx
$ /etc/init.d/apache2 start
$ tail -n 15 /var/log/apache2/error.log
/usr/sbin/httpd: symbol 'php_XML_SetCharacterDataHandler': can't resolve symbol in lib '/usr/lib/php/20090626/wddx.so'.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20090626/wddx.so' - (null) in Unknown on line 0
[Tue May 07 07:42:09.440360 2013] [mpm_prefork:notice] [pid 1378] AH00163: Apache/2.4.3 (Unix) PHP/5.3.18 configured -- resuming normal operations
[Tue May 07 07:42:09.440416 2013] [core:notice] [pid 1378] AH00094: Command line: '/usr/sbin/httpd -d /var/www -f /etc/apache2/httpd.conf'
#2 Updated by Natanael Copa about 6 years ago
$ apk add php-xml php-wddx $ php-cgi /usr/bin/php-cgi: symbol 'php_XML_SetCharacterDataHandler': can't resolve symbol PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/wddx.so' - (null) in Unknown on line 0
$ LD_PRELOAD=/usr/lib/php/modules/xml.so php-cgi
- mv /etc/php/conf.d/xml.ini /etc/php/conf.d/_xml.ini
The problem is that by default php will load wddx before xml because it loads them in alphabetic order.
Not sure what the proper solution would be. Possible solution would be that we track the deps manually and prefix the xml.ini with a numeric prefix (eg 10-xml.ini, 20.wddx.ini)
I would have prefered that we link wddx.so directly to xml.so so xml.so ends up in wddx.so's NEEDED section. Then would apk-tools also trace the deps automatically for us. Duuno how to do that though.
#3 Updated by V Krishn about 6 years ago
I just changed xml.ini to 10-xml.ini and it works. Thanks.
If the order is an issue than other mods may also be affected, example.
I also noticed the following list order for pdo* mods in debian:
10-pdo.ini -> ../mods-available/pdo.ini
20-mysqli.ini -> ../mods-available/mysqli.ini
20-mysql.ini -> ../mods-available/mysql.ini
20-pdo_mysql.ini -> ../mods-available/pdo_mysql.ini
This order is not made in alpine. So pls have a look for dep for all mods.
#4 Updated by Natanael Copa about 6 years ago
- Category set to Aports
- Priority changed from High to Normal
- Target version set to Alpine 2.6.0
looks like fedora simply renames the .ini file to xml_wddx.ini:
I guess this is the only modules having this problem.