summaryrefslogtreecommitdiff
path: root/tests/reflection/bug33389.phpt
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
committerMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
commit0a36161e13484a99ccf69bb38f206462d27cc6d6 (patch)
treed5107db4b7369603ac7c753829e8972ee74949f7 /tests/reflection/bug33389.phpt
parentce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 (diff)
downloadphp-upstream/5.1.2.tar.gz
Imported Upstream version 5.1.2upstream/5.1.2
Diffstat (limited to 'tests/reflection/bug33389.phpt')
-rwxr-xr-xtests/reflection/bug33389.phpt97
1 files changed, 0 insertions, 97 deletions
diff --git a/tests/reflection/bug33389.phpt b/tests/reflection/bug33389.phpt
deleted file mode 100755
index 36f7079e2..000000000
--- a/tests/reflection/bug33389.phpt
+++ /dev/null
@@ -1,97 +0,0 @@
---TEST--
-Bug #33389 (double free() when exporting a ReflectionClass)
---FILE--
-<?php
-define ('foobar', 1);
-class Test {
- function foo1($arg=foobar) {
- }
- function foo2($arg=null) {
- }
- function foo3($arg=false) {
- }
- function foo4($arg='foo') {
- }
- function foo5($arg=1) {
- }
- function bar($arg) {
- }
- function foo() {
- }
-}
-Reflection::export(new ReflectionClass('Test'));
-?>
-===DONE===
-<?php exit(0); ?>
---EXPECTF--
-Class [ <user> class Test ] {
- @@ %sbug33389.php 3-18
-
- - Constants [0] {
- }
-
- - Static properties [0] {
- }
-
- - Static methods [0] {
- }
-
- - Properties [0] {
- }
-
- - Methods [7] {
- Method [ <user> public method foo1 ] {
- @@ %sbug33389.php 4 - 5
-
- - Parameters [1] {
- Parameter #0 [ <optional> $arg = 1 ]
- }
- }
-
- Method [ <user> public method foo2 ] {
- @@ %sbug33389.php 6 - 7
-
- - Parameters [1] {
- Parameter #0 [ <optional> $arg = NULL ]
- }
- }
-
- Method [ <user> public method foo3 ] {
- @@ %sbug33389.php 8 - 9
-
- - Parameters [1] {
- Parameter #0 [ <optional> $arg = false ]
- }
- }
-
- Method [ <user> public method foo4 ] {
- @@ %sbug33389.php 10 - 11
-
- - Parameters [1] {
- Parameter #0 [ <optional> $arg = 'foo' ]
- }
- }
-
- Method [ <user> public method foo5 ] {
- @@ %sbug33389.php 12 - 13
-
- - Parameters [1] {
- Parameter #0 [ <optional> $arg = 1 ]
- }
- }
-
- Method [ <user> public method bar ] {
- @@ %sbug33389.php 14 - 15
-
- - Parameters [1] {
- Parameter #0 [ <required> $arg ]
- }
- }
-
- Method [ <user> public method foo ] {
- @@ %sbug33389.php 16 - 17
- }
- }
-}
-
-===DONE===