helly Thu Mar 10 19:22:28 2005 EDT
Modified files:
/php-src/ext/standard/tests/serialize bug31402.phpt
Log:
- Times have changed - php 5 relevant version now
http://cvs.php.net/diff.php/php-src/ext/standard/tests/serialize/bug31402.phpt?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/standard/tests/serialize/bug31402.phpt
diff -u php-src/ext/standard/tests/serialize/bug31402.phpt:1.2
php-src/ext/standard/tests/serialize/bug31402.phpt:1.3
--- php-src/ext/standard/tests/serialize/bug31402.phpt:1.2 Thu Mar 10
19:11:35 2005
+++ php-src/ext/standard/tests/serialize/bug31402.phpt Thu Mar 10 19:22:28 2005
@@ -19,7 +19,8 @@
function __construct() {
$this->A[1] = new TestX(1);
- $this->A[2] = new TestX(2);
+ $this->A[2] = & new TestX(2);
+ $this->A[3] = & $this->A[2];
$this->B = $this->A[1];
}
}
@@ -31,17 +32,23 @@
var_dump($before, $after);
?>
+===DONE===
--EXPECTF--
object(TestY)#%d (2) {
["A"]=>
- array(2) {
+ array(3) {
[1]=>
object(TestX)#%d (1) {
["i"]=>
int(1)
}
[2]=>
- object(TestX)#%d (1) {
+ &object(TestX)#%d (1) {
+ ["i"]=>
+ int(2)
+ }
+ [3]=>
+ &object(TestX)#%d (1) {
["i"]=>
int(2)
}
@@ -54,21 +61,27 @@
}
object(TestY)#%d (2) {
["A"]=>
- array(2) {
+ array(3) {
[1]=>
- &object(TestX)#%d (1) {
+ object(TestX)#%d (1) {
["i"]=>
int(1)
}
[2]=>
- object(TestX)#%d (1) {
+ &object(TestX)#%d (1) {
+ ["i"]=>
+ int(2)
+ }
+ [3]=>
+ &object(TestX)#%d (1) {
["i"]=>
int(2)
}
}
["B"]=>
- &object(TestX)#%d (1) {
+ object(TestX)#%d (1) {
["i"]=>
int(1)
}
}
+===DONE===
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php