diff options
Diffstat (limited to 'Zend/tests/bug46106.phpt')
| -rw-r--r-- | Zend/tests/bug46106.phpt | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Zend/tests/bug46106.phpt b/Zend/tests/bug46106.phpt new file mode 100644 index 0000000..f18c25a --- /dev/null +++ b/Zend/tests/bug46106.phpt @@ -0,0 +1,22 @@ +--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 |
