[PHP-DEV] copy of object is not copy PHP4.0.4 serious BUG

2001-03-06 Thread Roland
Hello, consider following two classes: class TDynVars { var $vars; function set ($key, $val) { $this-vars[$key] = $val; } } class TRequest { var $eventData; function TRequest () {

Re: [PHP-DEV] copy of object is not copy PHP4.0.4 serious BUG

2001-03-06 Thread Andi Gutmans
There is a problem with deeply places references (often objects) not being full copy constructed but the reference is copied. In order to change the behavior we would have to do a deep copy *everytime* we copy a complex structure. This would be very bad performance wise so except for thinking