|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-08-08 07:28 UTC] laruence@php.net
[2016-08-08 07:36 UTC] lars dot schultz at toolpark dot com
-Status: Open
+Status: Closed
-PHP Version: 7.0.9
+PHP Version: 7.0.3
[2016-08-08 07:36 UTC] lars dot schultz at toolpark dot com
[2016-08-08 07:36 UTC] laruence@php.net
-Status: Closed
+Status: Feedback
-PHP Version: 7.0.3
+PHP Version: 7.0.9
[2016-08-08 09:56 UTC] cmb@php.net
-Status: Feedback
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2016-08-08 09:56 UTC] cmb@php.net
[2016-08-08 10:01 UTC] lars dot schultz at toolpark dot com
[2016-08-08 10:18 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 17:00:02 2025 UTC |
Description: ------------ PHP Version 7.0.3-1~dotdeb+8.1 Passing the content of an array by reference, replaces the content with a reference to it. Getting expected behaviour in the following Versions: PHP Version 5.3.3-7+squeeze23 PHP Version 5.4.45 Test script: --------------- function sub(&$data){} $data = array(); sub($data['nested']); echo serialize(array($data,$data)); Expected result: ---------------- a:2:{i:0;a:1:{s:6:"nested";N;}i:1;a:1:{s:6:"nested";N;}} Actual result: -------------- a:2:{i:0;a:1:{s:6:"nested";N;}i:1;a:1:{s:6:"nested";R:3;}}