diff options
Diffstat (limited to 'tests/lang/bug44827.phpt')
-rw-r--r-- | tests/lang/bug44827.phpt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lang/bug44827.phpt b/tests/lang/bug44827.phpt index d871cfd2a8..9cb8c132e7 100644 --- a/tests/lang/bug44827.phpt +++ b/tests/lang/bug44827.phpt @@ -7,10 +7,13 @@ Testfest Munich 2009 --FILE-- <?php define('::', true); -var_dump(constant('::')); +try { + var_dump(constant('::')); +} catch (Error $e) { + echo $e->getMessage(), "\n"; +} ?> --EXPECTF-- Warning: Class constants cannot be defined or redefined in %s on line %d -Warning: constant(): Couldn't find constant :: in %s on line %d -NULL +Fatal error: Class '' not found in %s on line %d |