summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2004-09-20 22:28:36 +0000
committerSVN Migration <svn@php.net>2004-09-20 22:28:36 +0000
commit7b29fe5976300ea43d2e3c249865ed8f2a5fdff5 (patch)
tree61b5ff6dacb8936bb8f6e4b0d38af8db6a90dd2c
parentca25d91f13084c2ff21df17988e1f3b9fc3c3fcf (diff)
downloadphp-git-7b29fe5976300ea43d2e3c249865ed8f2a5fdff5.tar.gz
This commit was manufactured by cvs2svn to create tag 'php_4_3_9'.php-4.3.9
-rw-r--r--ext/standard/tests/serialize/bug14293.phpt36
-rw-r--r--ext/standard/tests/serialize/bug27469.phpt27
-rw-r--r--ext/standard/tests/serialize/bug28325.phpt39
3 files changed, 0 insertions, 102 deletions
diff --git a/ext/standard/tests/serialize/bug14293.phpt b/ext/standard/tests/serialize/bug14293.phpt
deleted file mode 100644
index 3fca7e406e..0000000000
--- a/ext/standard/tests/serialize/bug14293.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Bug #14293 (serialize() and __sleep())
---FILE--
-<?php
-class t
-{
- function t()
- {
- $this->a = 'hello';
- }
-
- function __sleep()
- {
- echo "__sleep called\n";
- return array('a','b');
- }
-}
-
-$t = new t();
-$data = serialize($t);
-echo "$data\n";
-$t = unserialize($data);
-var_dump($t);
-
-?>
---EXPECTF--
-__sleep called
-
-Notice: serialize(): "b" returned as member variable from __sleep() but does not exist in %sbug14293.php on line %d
-O:1:"t":2:{s:1:"a";s:5:"hello";s:1:"b";N;}
-object(t)#%d (2) {
- ["a"]=>
- string(5) "hello"
- ["b"]=>
- NULL
-}
diff --git a/ext/standard/tests/serialize/bug27469.phpt b/ext/standard/tests/serialize/bug27469.phpt
deleted file mode 100644
index e8d14106a8..0000000000
--- a/ext/standard/tests/serialize/bug27469.phpt
+++ /dev/null
@@ -1,27 +0,0 @@
---TEST--
-Bug #27469 (serialize() objects of incomplete class)
---FILE--
-<?php
-$str = 'O:9:"TestClass":0:{}';
-$obj = unserialize($str);
-var_dump($obj);
-echo serialize($obj)."\n";
-var_dump($obj);
-echo serialize($obj)."\n";
-var_dump($obj);
-?>
---EXPECT--
-object(__PHP_Incomplete_Class)#1 (1) {
- ["__PHP_Incomplete_Class_Name"]=>
- string(9) "TestClass"
-}
-O:9:"TestClass":0:{}
-object(__PHP_Incomplete_Class)#1 (1) {
- ["__PHP_Incomplete_Class_Name"]=>
- string(9) "TestClass"
-}
-O:9:"TestClass":0:{}
-object(__PHP_Incomplete_Class)#1 (1) {
- ["__PHP_Incomplete_Class_Name"]=>
- string(9) "TestClass"
-}
diff --git a/ext/standard/tests/serialize/bug28325.phpt b/ext/standard/tests/serialize/bug28325.phpt
deleted file mode 100644
index 7f2bd66371..0000000000
--- a/ext/standard/tests/serialize/bug28325.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Bug #28325 (Problem in serialisation of circular references)
---FILE--
-<?php
-class a {
- public $b;
-}
-class b {
- public $c;
-}
-class c {
- public $d;
-}
-$a = new a();
-$a->b = new b();
-$a->b->c = new c();
-$a->b->c->d = $a;
-var_dump(unserialize(serialize($a)));
-?>
---EXPECTF--
-object(a)#%d (1) {
- ["b"]=>
- object(b)#%d (1) {
- ["c"]=>
- object(c)#%d (1) {
- ["d"]=>
- object(a)#%d (1) {
- ["b"]=>
- object(b)#%d (1) {
- ["c"]=>
- object(c)#%d (1) {
- ["d"]=>
- *RECURSION*
- }
- }
- }
- }
- }
-}