mirror of
https://github.com/danog/php.git
synced 2025-01-22 04:51:20 +01:00
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.
This commit is contained in:
parent
fa29b56ad4
commit
54c2790f09
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
extDir="$(php -r 'echo ini_get("extension_dir");')"
|
extDir="$(php -d 'error_reporting=' -r 'echo ini_get("extension_dir");')"
|
||||||
cd "$extDir"
|
cd "$extDir"
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user