Arquivos
hhvm/hphp/test/vm/fatality.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

18 linhas
404 B
PHP

<?
function main() {
function e($errno, $errstr, $errfile, $errline, $errcontext='',
$errtrace = array()) {
$str = 'PHP: ';
$str .= $errstr;
$str .= " (in $errfile on line $errline)";
SandboxErrorToFatalConverter::processError($errno, $errstr, $str, $errfile);
throw new C;
}
set_error_handler("e");
function g() { }
function g() { } // fatal error
}
main();