PHP 4.0 Bug #9685: Error message from Windows: Apache has caused an error in MSVCRT.DLL

From: Date: Sun, 11 Mar 2001 21:23:59 +0000
Subject: PHP 4.0 Bug #9685: Error message from Windows: Apache has caused an error in MSVCRT.DLL
Groups: php.dev 
Request: Send a blank email to php-dev+get-48668@lists.php.net to get a copy of this message
From: jamaz@centrum.cz 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

« previous php.dev (#48668) next »