FS#42467 - [php-composer] Custom php.ini causes Composer to fail when certain extensions are required
Attached to Project:
Arch Linux
Opened by Jakob Gahde (J5lx) - Monday, 20 October 2014, 20:02 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 22 November 2015, 12:01 GMT
Opened by Jakob Gahde (J5lx) - Monday, 20 October 2014, 20:02 GMT
Last edited by Pierre Schmitz (Pierre) - Sunday, 22 November 2015, 12:01 GMT
|
Details
Description:
The package uses a custom shebang which advises PHP to use a custom php.ini (/usr/share/php-composer/php.ini). However in that php.ini only the extensions openssl, phar, zip, curl, and intl are enabled which causes Composer to fail when other extensions are required by packages (using the ext-<extname> syntax), even when they are enabled in the default php.ini (/etc/php/php.ini). Steps to reproduce: 1. mkdir /tmp/composer-test && cd /tmp/composer-test 2. composer require ext-gettext:* 3. Composer will fail with the error message "The requested PHP extension ext-gettext * is missing from your system." even tough it is enabled in the default php.ini (by default). |
This task depends upon
Closed by Pierre Schmitz (Pierre)
Sunday, 22 November 2015, 12:01 GMT
Reason for closing: Fixed
Additional comments about closing: system php.ini is used.
Sunday, 22 November 2015, 12:01 GMT
Reason for closing: Fixed
Additional comments about closing: system php.ini is used.
Is there any particular reason for having a separate .ini file because this seems to create more problems than it solves.
I have not run into anything like this in any other distro.
After symlinking /usr/share/php-composer/php.ini to /etc/php/php.ini, everything works.
This really should be fixed.
Is there any way we can fix it without him?
(Sent a email to the assignee hopefully he will finally respond.)
Today I spent (like other guys from this thread several hours to understand why composer didn't see sockets extension =(
In opposite of ubuntu server, where everything works.
This also means the system php.ini has to be adjusted by the user and composer does not work out of the box. This is the intended upstream behaviour though and should not have been altered.