summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2007-12-08 11:51:20 +0000
committerDerick Rethans <derick@php.net>2007-12-08 11:51:20 +0000
commit7b3f1787cc18d60b7f3fcdf16338912fd729a562 (patch)
treedd7f82d7ad3747510940aba0aba2f8a2bb3ce600
parent0cf5a9e521d871de9058f22ee9f6869fbea9bd3f (diff)
downloadphp-git-7b3f1787cc18d60b7f3fcdf16338912fd729a562.tar.gz
- Removed testcase because this is something that won't be ported back
from PHP 5. #- Also fixes bug #40496.
-rwxr-xr-xtests/lang/bug35239.phpt41
1 files changed, 0 insertions, 41 deletions
diff --git a/tests/lang/bug35239.phpt b/tests/lang/bug35239.phpt
deleted file mode 100755
index 22ed25b1d6..0000000000
--- a/tests/lang/bug35239.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-Bug #35239 (Objects can lose references)
---FILE--
-<?php
-$a = new stdClass;
-$a->x0 = new stdClass;
-$a->x0->y0 = 'a';
-$a->x0->y1 =& $a->x0;
-$a->x0->y2 =& $a->x0;
-$a->x0->y0 = 'b';
-var_dump($a);
-$a->x0->y1 = "ok\n";
-var_dump($a->x0);
-?>
---EXPECT--
-object(stdClass)(1) {
- ["x0"]=>
- &object(stdClass)(3) {
- ["y0"]=>
- string(1) "b"
- ["y1"]=>
- &object(stdClass)(3) {
- ["y0"]=>
- string(1) "b"
- ["y1"]=>
- *RECURSION*
- ["y2"]=>
- *RECURSION*
- }
- ["y2"]=>
- &object(stdClass)(3) {
- ["y0"]=>
- string(1) "b"
- ["y1"]=>
- *RECURSION*
- ["y2"]=>
- *RECURSION*
- }
- }
-}
-string(2) "ok"