|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-02-03 16:33 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 08:00:01 2025 UTC |
Description: ------------ Tested on v5.2.11 function $i param not incremented Reproduce code: --------------- <?php function test(&$i){ $i = $i + 5; } test($i = 1); // But only "$i" work echo $i ?> Expected result: ---------------- echo $i; // 6 Actual result: -------------- echo $i; // 1