From:             [EMAIL PROTECTED]
Operating system: Windows ME
PHP version:      4.0.3pl1
PHP Bug Type:     Arrays related
Bug description:  Error message from Windows: Apache has caused an error in MSVCRT.DLL

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.


-- 
Edit Bug report at: http://bugs.php.net/?id=9685&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to