Skip to content

Commit

Permalink
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
Browse files Browse the repository at this point in the history
  • Loading branch information
SVN Migration committed Mar 19, 2004
1 parent 8621923 commit c6b98d3
Show file tree
Hide file tree
Showing 15 changed files with 3,499 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ext/standard/tests/serialize/bug27469.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
--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"
}
Loading

0 comments on commit c6b98d3

Please sign in to comment.