Skip to content

Commit 54c2790

Browse files
authored
Sets PHP error level for getting extension dir
If an uncaught exception is thrown during parsing of the php.ini file, `$extDir` will contain a combination of the exception and the path. This script shouldn't care about error messages though as long as it gets the path. This updates the script so that php won't emit any error messages.
1 parent fa29b56 commit 54c2790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-php-ext-enable

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22
set -e
33

4-
extDir="$(php -r 'echo ini_get("extension_dir");')"
4+
extDir="$(php -d 'error_reporting=' -r 'echo ini_get("extension_dir");')"
55
cd "$extDir"
66

77
usage() {

0 commit comments

Comments
 (0)