|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-12 14:33 UTC] smlerman at gmail dot com
[2009-02-12 14:52 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 18:00:01 2025 UTC |
Description: ------------ The Calculation of sizeof + func_num_args within a for does not work / ends in an endless-for. Reproduce code: --------------- f("this","is","a","test"); function f() { $wuergs = array ( 0 => "1234", 1 => "B", 2 => "C", 3 => "D" ); $args=func_get_args(); for($i=4;$i<((func_num_args() + sizeof($wuergs)));$i++) { $wuergs[$i]=$args[$i-4]; } return l_backend($wuergs); } Expected result: ---------------- Moving the content of $args four arrays highr. Actual result: -------------- Endless loop.