php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64966
Patch bug64966.phpt revision 2013-06-08 09:19 UTC by laruence@php.net
Patch bug64966.patch revision 2013-06-08 09:19 UTC by laruence@php.net
Patch exception.diff revision 2013-06-07 19:53 UTC by bfrance@php.net

Patch bug64966.phpt for Scripting Engine problem Bug #64966

Patch version 2013-06-08 09:19 UTC

Return to Bug #64966 | Download this patch
Patch Revisions:

Developer: laruence@php.net

--TEST--
Bug #64966 (segfault in zend_do_fcall_common_helper_SPEC)
--FILE--
<?php
error_reporting(E_ALL);
set_error_handler(function($error) { throw new Exception(); }, E_RECOVERABLE_ERROR);

function test($func) {
	$a = $func("");
	return true;
}
class A {
	public function b() {
		test("strlen");
		test("iterator_apply");
	}
}

$a = new A();
$a->b();
?>
--EXPECTF--
Fatal error: Uncaught exception 'Exception' in %sbug64966.php:3
Stack trace:
#0 [internal function]: {closure}(4096, 'Argument 1 pass...', '/home/huixinche...', 6, Array)
#1 %sbug64966.php(6): iterator_apply('')
#2 %sbug64966.php(12): test('iterator_apply')
#3 %sbug64966.php(17): A->b()
#4 {main}
  thrown in %sbug64966.php on line 3
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 16:01:29 2024 UTC