|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-03-13 00:47 UTC] levim@php.net
-Status: Open
+Status: Feedback
[2020-03-13 00:47 UTC] levim@php.net
[2020-03-13 00:47 UTC] requinix@php.net
[2020-03-13 00:58 UTC] michael dot vorisek at email dot cz
[2020-03-13 00:59 UTC] requinix@php.net
-Status: Feedback
+Status: Not a bug
[2020-03-13 00:59 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 12:00:02 2025 UTC |
Description: ------------ After tens of hours I have isolated an issue where setting one property sets the same property of the same class of different instance (verified by objects hashes). I finally managed to fix the issue by the following code: public function __clone() { $elems = $this->elements; unset($this->elements); $this->elements = $elems; ... } I was not able to isolate this issue to short test code. Please confirm, that the following code is normally never needed if the "elements" property is an array and please check the source of PHP briefly for this issue. I have full access to the server so I can test anything.