File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug46106.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 4 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

--TEST--
Bug #46106 (Memory leaks when using global statement)
--FILE--
<?php
$foo = array(1);

function foobar($errno, $errstr, $errfile, $errline) { }

set_error_handler('foobar');

function test($x) {
	global $foo;

	$x->invokeArgs(array(0));
}

$x = new ReflectionFunction('str_pad');
test($x);
?>
DONE
--EXPECT--
DONE

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