Merge pull request #172 from infosiftr/better-zend-check

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:
yosifkit 2016-01-07 09:10:31 -08:00
commit 4e1cb2b3eb
10 changed files with 10 additions and 10 deletions

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

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

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

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

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

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

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

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

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

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