#!/usr/bin/env bash shopt -s nullglob export LC_ALL=C for i in /tmp/core_*.*; do if [ -f "$i" -a "$(file "$i" | grep -o 'core file')" ]; then gdb -q /home/travis/.phpenv/versions/`php-config --version`/bin/php "$i" <