You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix#1157: Load PHP extensions from .bp-config/php/php.ini.d during composer
Parse extension= and zend_extension= directives from user .ini files and
add them to the buildpack context so extensions are available during both
composer install (build-time) and application runtime.
Implementation:
- Add loadUserExtensions() method to composer extension (composer.go)
- Add loadUserExtensions() method to supply phase (supply.go)
- Parse .bp-config/php/php.ini.d/*.ini files for extension directives
- Extract extension names (strip .so suffix, quotes)
- Add to context PHP_EXTENSIONS and ZEND_EXTENSIONS lists
- Use uniqueStrings() helper to prevent duplicates
This approach integrates with the buildpack's existing extension loading
mechanism, avoiding duplicate loading and ensuring consistency between
build-time and runtime configurations.
0 commit comments