Enabling PHP extensions via pecl fails #570

Closed
davidpersson opened this Issue May 28, 2012 · 4 comments

Comments

Projects
None yet
4 participants

Installing a PHP extension via pecl in the 5.3 environment will not automatically enable them. Installing works but not enabling. However this both works flawlessly in the 5.4 environment and the command below will install and enable the extension.

Example:

$ sudo pecl install apc

First investigations show that the pecl command fails to append extension=apc.so to the actually loaded file. You can get the loaded file via php -r 'echo php_ini_loaded_file();'. It's unclear to me if it appends to any other ini file instead. Also the pear/pecl configuration for the ini file location seems to be incorrect as shown by pecl config-show.

I have the same issue, but with inotify. It works great in 5.4, but with 5.3 it fails, even if the output tells me

 Extension inotify enabled in php.ini

This is in my .travis.yml

before_script:
  - pecl install inotify

loicfrering was assigned Nov 3, 2012

Contributor

loicfrering commented Nov 3, 2012

I'm investigating this issue right now. Sorry for the delay, I'll keep you updated soon!

loicfrering referenced this issue in php-build/php-build Nov 4, 2012

Merged

Fix issue with PEAR's php_ini config. #84

CHH commented Nov 5, 2012

Thanks for the PR @loicfrering!

php-build issue is fixed, but make sure that ~/.pearrc does not exist on the workers, otherwise it doesn't fall back to the system config.

Contributor

loicfrering commented Nov 5, 2012

@CHH sure, the boxes are gonna be rebuilt anyway, thanks for merging 😃

loicfrering referenced this issue in travis-ci/travis-cookbooks Nov 18, 2012

Closed

PHP 5.3 vs 5.4 inconsistency: zmq extension #105

@loicfrering loicfrering added a commit to travis-ci/travis-cookbooks that referenced this issue Nov 18, 2012

@loicfrering loicfrering Update php-build to fix automatic enabling of PECL extensions. 558a3cd

loicfrering closed this Mar 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment