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:
Chris Jones 2019-06-06 14:10:55 -04:00 committed by GitHub
parent fa29b56ad4
commit 54c2790f09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
#!/bin/sh
set -e
extDir="$(php -r 'echo ini_get("extension_dir");')"
extDir="$(php -d 'error_reporting=' -r 'echo ini_get("extension_dir");')"
cd "$extDir"
usage() {