Bug #8661 Updated: a copy of the internal array elements is sometimes not made

From: Date: Tue, 12 Jun 2001 16:40:13 +0000
Subject: Bug #8661 Updated: a copy of the internal array elements is sometimes not made
Groups: php.dev 
Request: Send a blank email to php-dev+get-56919@lists.php.net to get a copy of this message
ID: 8661 Updated by: jmoore Reported By: lgordon@idiotbrain.com Old-Status: Duplicate Status: Closed Bug Type: Scripting Engine problem Operating system: PHP Version: 4.0.4 Assigned To: Comments: This is a feature not a bug :P (IE it wont be fixed anytime soon). Previous Comments: --------------------------------------------------------------------------- [2001-04-28 15:31:17] jmoore@php.net dup of 8130 --------------------------------------------------------------------------- [2001-04-28 15:29:23] jmoore@php.net dup of 8130 --------------------------------------------------------------------------- [2001-03-16 03:58:55] lgordon@idiotbrain.com I don't agree with this. The zend engine only does a shallow copy in this particular instance, and it is a bug. If the array is not accessed through a method in the object, the copy is performed correctly. Please re-analyze this. --------------------------------------------------------------------------- [2001-03-15 09:20:44] stas@php.net Zend copies arrays and objects "shallow" (for performance reasons). The workaround is to implement "clone" method. This probably should be built-in function in Zend. --------------------------------------------------------------------------- [2001-02-28 00:21:05] lgordon@idiotbrain.com My bad, my email address is larry@idiotbrain.com Please detail on a fix for this bug. Thanks, Larry --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8661&edit=2

« previous php.dev (#56919) next »