|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-04-02 14:22 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 02:00:01 2025 UTC |
Description: ------------ I've made a block plugin for smarty templates library, it's working fine on PHP 5.1.1 and earlier, but not on 5.1.2. The reproduce code is just minimized to show how it works and how should it work. Reproduce code: --------------- $a = true; while($a){ fun1($a = false); } // --------------------- $iterator = 0; function fun1(&$repeat){ global $iterator; if ($iterator > 10) $repeat = true; iterator++; } changing code of while to making it work as expected: $a = true; while($a){ $a = false fun1($a); } Expected result: ---------------- more than 1 iteration should be executed, Actual result: -------------- while executed once.