I need to prevent all php output, https://stackoverflow.com/a/617184/1695680 covers how to do this in general and for exception, errors, syntax errors so far it has worked, but.
php to produce a segfault in the pcre extension: https://ilia.ws/archives/5_Top_10_ways_to_crash_PHP.html
<?php
# prce-bug.php
preg_match('/(.(?!b))*/', str_repeat("a", 10000));
In my testing, this still outputs:
user@host ~/crash-php $ php pcre-bug.php
Segmentation fault (core dumped)
user@host ~/crash-php $ php pcre-bug.php >/dev/null 2>&1
Segmentation fault (core dumped)
So even with shell output redirection, output is getting to my terminal.