File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug64966.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:32:17 2013 UTC (12 years, 5 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 #64966 (segfault in zend_do_fcall_common_helper_SPEC)
    3: --FILE--
    4: <?php
    5: error_reporting(E_ALL);
    6: set_error_handler(function($error) { throw new Exception(); }, E_RECOVERABLE_ERROR);
    7: 
    8: function test($func) {
    9: 	$a = $func("");
   10: 	return true;
   11: }
   12: class A {
   13: 	public function b() {
   14: 		test("strlen");
   15: 		test("iterator_apply");
   16: 	}
   17: }
   18: 
   19: $a = new A();
   20: $a->b();
   21: ?>
   22: --EXPECTF--
   23: Fatal error: Uncaught exception 'Exception' in %sbug64966.php:3
   24: Stack trace:
   25: #0 [internal function]: {closure}(4096, 'Argument 1 pass...', '%s', 6, Array)
   26: #1 %sbug64966.php(6): iterator_apply('')
   27: #2 %sbug64966.php(12): test('iterator_apply')
   28: #3 %sbug64966.php(17): A->b()
   29: #4 {main}
   30:   thrown in %sbug64966.php on line 3

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