diff options
author | SVN Migration <svn@php.net> | 2004-08-31 14:05:31 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 2004-08-31 14:05:31 +0000 |
commit | dcb0e67baa066e93d9a610027cda8f4f41e00a67 (patch) | |
tree | 40a3de5ddcda51580e77b7b04316488b5c119c05 | |
parent | 54ec8a53d370c637d7091f9989071155b099b25e (diff) | |
download | php-git-php-4.3.9RC2.tar.gz |
This commit was manufactured by cvs2svn to create tag 'php_4_3_9RC2'.php-4.3.9RC2
-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* - } - } - } - } - } -} |