[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object

2001-08-31 Thread thies

ID: 11163
Updated by: thies
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 4.0.5
New Comment:

please update to 4.0.6 - i cannot reproduce any faulty 
behaviour.



Previous Comments:


[2001-08-31 11:12:24] [EMAIL PROTECTED]

Not a bug. 
Making it a feature request.



[2001-05-29 01:35:25] [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



firstName=$fn;   
$this->test= $obj;
}   //constructor
function toString(){
print "user user user user  ";  
}   
} //User


$temp =new user ('aaa',new test());
$temp->toString();
print"";
$temp->test->toString();

$temp2=serialize($temp);
print"$temp2";
$temp3=unserialize($temp2);
print"";
print(get_class($temp3));
print"";
$temp3->toString();
print"";
$temp3->test->toString();






Edit this bug report at http://bugs.php.net/?id=11163&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #11163 Updated: Serialize an object which has another object

2001-08-31 Thread sander

ID: 11163
Updated by: sander
Reported By: [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] [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



firstName=$fn;   
$this->test= $obj;
}   //constructor
function toString(){
print "user user user user  ";  
}   
} //User


$temp =new user ('aaa',new test());
$temp->toString();
print"";
$temp->test->toString();

$temp2=serialize($temp);
print"$temp2";
$temp3=unserialize($temp2);
print"";
print(get_class($temp3));
print"";
$temp3->toString();
print"";
$temp3->test->toString();






Edit this bug report at http://bugs.php.net/?id=11163&edit=1


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]