Date: 08/31/01
- Next message: andrei <email protected>: "[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace"
- Previous message: andrei <email protected>: "[PHP-DEV] Bug #12936 Updated: array_multisort and passing by reference"
- Next in thread: thies <email protected>: "[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object"
- Maybe reply: thies <email protected>: "[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 11163
Updated by: sander
Reported By: rh98aa <email protected>
Status: Open
Old Bug Type: Scripting Engine problem
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 4.0.5
New Comment:
Not a bug.
Making it a feature request.
Previous Comments:
------------------------------------------------------------------------
[2001-05-29 01:35:25] rh98aa <email protected>
I could not believe that serialize does not serialize an object inside of an object especially since arrays work and they are an object right?
If I am incorrect please explain.
Thank you
<?
class test {
function toString(){
print "test test test test test";
} //toString()
} //User
class User {
var $firstName; //first name
var $test; //The type of user test purposes
function User ($fn,$obj){
$this->firstName=$fn;
$this->test= $obj;
} //constructor
function toString(){
print "user user user user ";
}
} //User
$temp =new user ('aaa',new test());
$temp->toString();
print"<br>";
$temp->test->toString();
$temp2=serialize($temp);
print"<br>$temp2";
$temp3=unserialize($temp2);
print"<br><br><br>";
print(get_class($temp3));
print"<br><br><br>";
$temp3->toString();
print"<br><br><br>";
$temp3->test->toString();
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11163&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: andrei <email protected>: "[PHP-DEV] Bug #12668 Updated: unexpected behavior of preg_replace"
- Previous message: andrei <email protected>: "[PHP-DEV] Bug #12936 Updated: array_multisort and passing by reference"
- Next in thread: thies <email protected>: "[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object"
- Maybe reply: thies <email protected>: "[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

