mirror of
https://github.com/danog/php.git
synced 2025-01-22 04:51:20 +01:00
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:
commit
4e1cb2b3eb
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user