diff options
| author | Nikita Popov <nikic@php.net> | 2015-03-09 14:08:01 +0100 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2015-03-09 14:09:34 +0100 |
| commit | b0055678bf53608f440d074d9acee49b03dabfc0 (patch) | |
| tree | 34396ad97b0348f42c08f95bbbdf3ac3fc67f1e0 /sapi/cli | |
| parent | 1c94ff0595bbe6f3df8058aff7252bda09dc4a15 (diff) | |
| download | php-git-b0055678bf53608f440d074d9acee49b03dabfc0.tar.gz | |
Fix CLI test and drop some now unnecessary code
Diffstat (limited to 'sapi/cli')
| -rw-r--r-- | sapi/cli/tests/bug43177.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sapi/cli/tests/bug43177.phpt b/sapi/cli/tests/bug43177.phpt index a97769cf8f..c0a8da4d4d 100644 --- a/sapi/cli/tests/bug43177.phpt +++ b/sapi/cli/tests/bug43177.phpt @@ -11,7 +11,10 @@ php_cli_server_start(<<<'SCRIPT' ini_set('display_errors', 0); switch($_SERVER["REQUEST_URI"]) { case "/parse": - eval("this is a parse error"); + try { + eval("this is a parse error"); + } catch (ParseException $e) { + } echo "OK\n"; break; case "/fatal": |
