|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-07 12:39 UTC] sbergmann@php.net
[2001-06-01 16:11 UTC] sniper@php.net
[2021-03-10 10:33 UTC] akiracaleb4 at gmail dot com
[2022-01-08 11:51 UTC] hanalannister at tutanota dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 22:00:01 2025 UTC |
I think that problem is in row marked in script with "ERROR LINE? =>" This script causes error if $GLOBALS is passed as first argument. I didn't experienced the problem with any other variable. SCRIPT: <?php $GLOBALS[is_included][echo_array]=(true); function echo_array($a,$key="",$l=1) {echo "<CODE>\nArray <B>".$key."</B><BR>\n"; echo_array_self($a,$key,$l); echo "\n</CODE>"; } function echo_array_self($a,$key="",$l=1) {while(list($k,$v)=each($a)) {for($i=0;$i<$l;$i++){echo " |";} echo " +"; if(is_array($v)): echo " + <B>".$key."[".$k."]</B> - array()<BR>\n"; ERROR LINE? => if($v!=$GLOBALS): echo_array_self($v,$key."[".$k."]",$x=$l+1); endif; else: echo " - ".$key."[".$k."]="; if(is_string($v)): echo "'$v'<BR>\n"; else: echo $v."<BR>\n"; endif; endif; } } ?> I can't give you any other informations.