summaryrefslogtreecommitdiff
path: root/Zend/tests/bug79599.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug79599.phpt')
-rw-r--r--Zend/tests/bug79599.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/Zend/tests/bug79599.phpt b/Zend/tests/bug79599.phpt
index b333f153a8..57e5332431 100644
--- a/Zend/tests/bug79599.phpt
+++ b/Zend/tests/bug79599.phpt
@@ -3,23 +3,23 @@ Bug #79599 (coredump in set_error_handler)
--FILE--
<?php
set_error_handler(function($code, $message){
- throw new \Exception($message);
+ throw new \Exception($message);
});
function test1(){
- $a[] = $b;
+ $a[] = $b;
}
function test2(){
- $a[$c] = $b;
+ $a[$c] = $b;
}
try{
- test1();
+ test1();
}catch(\Exception $e){
- var_dump($e->getMessage());
+ var_dump($e->getMessage());
}
try{
- test2();
+ test2();
}catch(\Exception $e){
- var_dump($e->getMessage());
+ var_dump($e->getMessage());
}
?>
--EXPECT--