-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP extension directory not consistent with PECL installed extensions #11618
Comments
This was referenced Nov 4, 2022
This was referenced Nov 28, 2023
This was referenced May 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran into a problem when trying to install PHP + PECL extensions (via
phpPackages
package).When PHP compiles, it installs extensions configured during build into a default directory like
lib/php/extensions/no-debug-zts-20131226
which differs for each PHP version and compile configurations (like ZTS support).When installing PECL extensions via
phpPackages
ontop of PHP, they are installed into a fixed directorylib/php/extensions
which makes it impossible to load those viaphp.ini
(without knowing the absolute path) as PHP expects them to find inlib/php/extensions/no-debug-zts-20131226
.In scenarios where you define your
php.ini
outside of nix context, it is impossible to load the PECL extensions.I wonder if a consistent extension directory for both PHP and PECL extensions could be established. Maybe the PHP package could set the
EXTENSION_DIR
(see here) environment variable tolib/php/extensions
beforeconfigure
like it is done in the PECL builder.That would make it much easier to configure PHP extensions.
See my profile to get an impression:
/cc @shlevy @globin
The text was updated successfully, but these errors were encountered: