mirror of
https://github.com/docker-library/php.git
synced 2025-07-28 23:21:13 +00:00
Use "nm" to list actual symbols from the module to check for the "zend_extension_entry" symbol (fixes false positives like xcache)
This commit is contained in:
@ -38,7 +38,7 @@ if [ "${#modules[@]}" -eq 0 ]; then
|
||||
fi
|
||||
|
||||
for module in "${modules[@]}"; do
|
||||
if grep -q zend_extension_entry "$module"; then
|
||||
if nm -g "$module" | grep -q ' zend_extension_entry$'; then
|
||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||
line="zend_extension=$(readlink -f "$module")"
|
||||
else
|
||||
|
Reference in New Issue
Block a user