summaryrefslogtreecommitdiff
path: root/tests/lang/bug21669.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug21669.phpt')
-rw-r--r--tests/lang/bug21669.phpt23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/lang/bug21669.phpt b/tests/lang/bug21669.phpt
deleted file mode 100644
index 8a3e7a6cf9..0000000000
--- a/tests/lang/bug21669.phpt
+++ /dev/null
@@ -1,23 +0,0 @@
---TEST--
-Bug #21669 "$obj = new $this->var;" doesn't work
---FILE--
-<?php
-class Test {
- function say_hello() {
- echo "Hello world";
- }
-}
-
-class Factory {
- var $name = "Test";
- function create() {
- $obj = new $this->name; /* Parse error */
- return $obj;
- }
-}
-$factory = new Factory;
-$test = $factory->create();
-$test->say_hello();
-?>
---EXPECT--
-Hello world