Skip to content
Advertisement

Bash trap command failing to catch fatal php script exit code 255

Minimal example of the issue:

JavaScript

bin/pi is a php script, it’s exiting with exit code 255 and a fatal error. However the bash trap isn’t being caught. How come?

Advertisement

Answer

set -o functrace does not seem to do what you expected.

Try this :

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement