From 185648217f1b3b91c3c008914f0b90390e144fee Mon Sep 17 00:00:00 2001 From: foobar Date: Sat, 18 Jun 2005 01:01:48 +0000 Subject: [PATCH] test for bug #33389 --- ext/reflection/tests/bug33389.phpt | 93 ++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100755 ext/reflection/tests/bug33389.phpt diff --git a/ext/reflection/tests/bug33389.phpt b/ext/reflection/tests/bug33389.phpt new file mode 100755 index 0000000000..ebe18c2391 --- /dev/null +++ b/ext/reflection/tests/bug33389.phpt @@ -0,0 +1,93 @@ +--TEST-- +Bug #33389 (double free() when exporting a ReflectionClass) +--FILE-- + +--EXPECTF-- +Class [ class Test ] { + @@ %sbug33389.php 3-18 + + - Constants [0] { + } + + - Static properties [0] { + } + + - Static methods [0] { + } + + - Properties [0] { + } + + - Methods [7] { + Method [ public method foo1 ] { + @@ %sbug33389.php 4 - 5 + + - Parameters [1] { + Parameter #0 [ $arg = foobar ] + } + } + + Method [ public method foo2 ] { + @@ %sbug33389.php 6 - 7 + + - Parameters [1] { + Parameter #0 [ $arg = NULL ] + } + } + + Method [ public method foo3 ] { + @@ %sbug33389.php 8 - 9 + + - Parameters [1] { + Parameter #0 [ $arg = FALSE ] + } + } + + Method [ public method foo4 ] { + @@ %sbug33389.php 10 - 11 + + - Parameters [1] { + Parameter #0 [ $arg = 'foo' ] + } + } + + Method [ public method foo5 ] { + @@ %sbug33389.php 12 - 13 + + - Parameters [1] { + Parameter #0 [ $arg = 1 ] + } + } + + Method [ public method bar ] { + @@ %sbug33389.php 14 - 15 + + - Parameters [1] { + Parameter #0 [ $arg ] + } + } + + Method [ public method foo ] { + @@ %sbug33389.php 16 - 17 + } + } +} -- 2.40.0