diff options
author | SVN Migration <svn@php.net> | 2004-08-11 22:42:48 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-08-11 22:42:48 +0000 |
commit | a2575b8b2b5928c6d1f603c922c8854719265429 (patch) | |
tree | d5d1e717d8903187ac60727a87ffe337408ed083 | |
parent | 2e63531d7730152ede96137ceb3f19b1faa9f525 (diff) | |
download | php-git-a2575b8b2b5928c6d1f603c922c8854719265429.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_4_3_9RC1'.php-4.3.9RC1
-rw-r--r-- | ext/standard/tests/serialize/bug27469.phpt | 27 | ||||
-rw-r--r-- | ext/standard/tests/serialize/bug28325.phpt | 39 |
2 files changed, 0 insertions, 66 deletions
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* - } - } - } - } - } -} |