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:
Tianon Gravi 2016-01-06 16:30:39 -08:00
parent a5c680f5dc
commit bdf240ee2a

View File

@ -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