diff options
author | Stanislav Malyshev <stas@php.net> | 2010-04-01 19:36:56 +0000 |
---|---|---|
committer | Stanislav Malyshev <stas@php.net> | 2010-04-01 19:36:56 +0000 |
commit | a3857fd9631102cbe923cca8fce0d22a4c5c3199 (patch) | |
tree | 3da16475f401caa3b5dcdf47606cd85eac2beff6 /Zend/tests/bug51394.phpt | |
parent | 8b1d84a6ce59b89fa593c110f3aa71ac12b55b1d (diff) | |
download | php-git-a3857fd9631102cbe923cca8fce0d22a4c5c3199.tar.gz |
fix #51394 - try harder to find script lineno when exception happens
Diffstat (limited to 'Zend/tests/bug51394.phpt')
-rw-r--r-- | Zend/tests/bug51394.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Zend/tests/bug51394.phpt b/Zend/tests/bug51394.phpt new file mode 100644 index 0000000000..537574c9d5 --- /dev/null +++ b/Zend/tests/bug51394.phpt @@ -0,0 +1,16 @@ +--TEST-- +Bug #51394 (Error line reported incorrectly if error handler throws an exception) +--INI-- +error_reporting=-1 +--FILE-- +<?php +function eh() +{ + throw new Exception("error!"); + return false; +} + +set_error_handler("eh"); +$a = $empty($b); +--EXPECTF-- +Fatal error: Function name must be a string in %sbug51394.php on line 9
\ No newline at end of file |