File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug51394.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (11 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.17

    1: --TEST--
    2: Bug #51394 (Error line reported incorrectly if error handler throws an exception)
    3: --INI--
    4: error_reporting=-1
    5: --FILE--
    6: <?php
    7: function eh()
    8: {
    9: 	throw new Exception("error!");
   10: 	return false;
   11: }
   12: 
   13: set_error_handler("eh");
   14: $a = $empty($b);
   15: --EXPECTF--
   16: Warning: Uncaught exception 'Exception' with message 'error!' in %sbug51394.php:4
   17: Stack trace:
   18: #0 %sbug51394.php(9): eh(8, 'Undefined varia...', '%s', 9, Array)
   19: #1 {main}
   20:   thrown in %sbug51394.php on line 4
   21: 
   22: Fatal error: Function name must be a string in %sbug51394.php on line 9

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>