Seemed easier than trying to figure out how to force the prompt to accept the unknown IP (perhaps not possible at all as it is part of SSH?). `yes` didn't work, unfortunately.
17 lines
No EOL
395 B
PHP
Executable file
17 lines
No EOL
395 B
PHP
Executable file
--TEST--
|
|
set_exit_overload() with an uncaught exception
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('test_helpers')) die('skip test_helpers extension not loaded');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
set_exit_overload(function($arg = NULL) { throw new Exception("Please don't segfault"); });
|
|
try {
|
|
exit("hi");
|
|
} catch(Exception $exception) {
|
|
echo $exception->getMessage();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Please don't segfault
|