From bdf240ee2ade87cdaa70c9abb6a29c61413cd5db Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Wed, 6 Jan 2016 16:30:39 -0800 Subject: [PATCH] Use "nm" to list actual symbols from the module to check for the "zend_extension_entry" symbol (fixes false positives like xcache) --- docker-php-ext-enable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-php-ext-enable b/docker-php-ext-enable index f84e9554..8cc8bb60 100755 --- a/docker-php-ext-enable +++ b/docker-php-ext-enable @@ -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