Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #21007 pecl install results in wrong order of extension= ini directives
Submitted: 2015-12-21 10:26 UTC
From: mabe Assigned:
Status: Open Package: PEAR (version Unknown)
PHP Version: Irrelevant OS: Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 34 - 26 = ?

 
 [2015-12-21 10:26 UTC] mabe (Marc Bennewitz)
Description: ------------ On installing PHP extensions using "pecl install <ext>" the extension will be automatically enabled in php.ini. This is fine but it results in a reverse order of "extension=<ext>.so" directive. As "apcu_bc" (compiled as apc.so) depends on apcu which needs to be loaded first. In an own environment this is simply to fix but on others (like travis) this is very ugly- -> https://travis-ci.org/marc-mabe/zend-cache/jobs/98086337 Test script: --------------- pecl install apcu pecl install apcu_bc Expected result: ---------------- <php.ini> extension="apcu.so" extension="apc.so" Actual result: -------------- <php.ini> extension="apc.so" extension="apcu.so" <php> PHP Warning: PHP Startup: Unable to load dynamic library '/home/travis/.phpenv/versions/7.0.0/lib/php/extensions/no-debug-zts-20151012/apc.so' - /home/travis/.phpenv/versions/7.0.0/lib/php/extensions/no-debug-zts-20151012/apc.so: undefined symbol: zif_apcu_store in Unknown on line 0

Comments