|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-02 07:10 UTC] mike@php.net
[2006-05-03 05:23 UTC] lacak at users dot sourceforge dot net
[2006-05-03 06:57 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 22:00:02 2025 UTC |
Description: ------------ See please the php reproduce code. In PHP 4.4.2 returns "Expected result" In PHP 5.1.3 returns "Actual result" Reproduce code: --------------- <?php function a(&$p) { $p=array("a"=>"1", "b"=>2); } function b(&$p) { $p=1; } a($v1=array()); print_r($v1); b($v2=0); var_dump($v2); ?> Expected result: ---------------- Array ( [a] => 1 [b] => 2 ) int(1) Actual result: -------------- Array ( ) int(0)