mirror of
https://github.com/danog/php.git
synced 2024-12-02 09:27:58 +01:00
Fix a few superficial issues with "docker-php-ext-enable"
This commit is contained in:
parent
6a28b28d56
commit
f504394473
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd "$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
||||||
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: $0 [options] module-name [module-name ...]"
|
echo "usage: $0 [options] module-name [module-name ...]"
|
||||||
@ -10,7 +11,12 @@ usage() {
|
|||||||
echo " $0 --ini-name 0-apc.ini apcu apc"
|
echo " $0 --ini-name 0-apc.ini apcu apc"
|
||||||
echo
|
echo
|
||||||
echo 'Possible values for module-name:'
|
echo 'Possible values for module-name:'
|
||||||
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
|
find -maxdepth 1 \
|
||||||
|
-type f \
|
||||||
|
-name '*.so' \
|
||||||
|
-exec basename '{}' ';' \
|
||||||
|
| sort \
|
||||||
|
| xargs
|
||||||
echo
|
echo
|
||||||
echo 'Some of the above modules are already compiled into PHP; please check'
|
echo 'Some of the above modules are already compiled into PHP; please check'
|
||||||
echo 'the output of "php -i" to see which modules are already loaded.'
|
echo 'the output of "php -i" to see which modules are already loaded.'
|
||||||
@ -47,7 +53,7 @@ for module; do
|
|||||||
module="$module.so"
|
module="$module.so"
|
||||||
fi
|
fi
|
||||||
if ! [ -f "$module" ]; then
|
if ! [ -f "$module" ]; then
|
||||||
echo >&2 "error: $(readlink -f "$module") does not exist"
|
echo >&2 "error: '$module' does not exist"
|
||||||
echo >&2
|
echo >&2
|
||||||
usage >&2
|
usage >&2
|
||||||
exit 1
|
exit 1
|
||||||
@ -80,7 +86,8 @@ fi
|
|||||||
for module in $modules; do
|
for module in $modules; do
|
||||||
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
if readelf --wide --syms "$module" | grep -q ' zend_extension_entry$'; then
|
||||||
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
# https://wiki.php.net/internals/extensions#loading_zend_extensions
|
||||||
line="zend_extension=$(readlink -f "$module")"
|
absModule="$(readlink -f "$module")"
|
||||||
|
line="zend_extension=$absModule"
|
||||||
else
|
else
|
||||||
line="extension=$module"
|
line="extension=$module"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user