Skip to content

Instantly share code, notes, and snippets.

@webevt
Created November 17, 2017 10:38
Show Gist options
  • Save webevt/6a238497a855489506ea6cce63eaeed4 to your computer and use it in GitHub Desktop.
Save webevt/6a238497a855489506ea6cce63eaeed4 to your computer and use it in GitHub Desktop.
Run php without xdebug extension loaded
#!/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