Created
November 17, 2017 10:38
-
-
Save webevt/6a238497a855489506ea6cce63eaeed4 to your computer and use it in GitHub Desktop.
Run php without xdebug extension loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
DIR_INI_TMP=$(mktemp -d) | |
find "${PHP_INI_DIR}"/conf.d/* | grep -v xdebug | xargs cp -t "${DIR_INI_TMP}" | |
PHP_INI_SCAN_DIR="${DIR_INI_TMP}" exec php "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment