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

From: Date: Mon, 07 May 2001 16:39:32 +0000
Subject: Bug #9685 Updated: Error message from Windows: Apache has caused an error in MSVCRT.DLL
Groups: php.dev 
Request: Send a blank email to php-dev+get-54248@lists.php.net to get a copy of this message
ID: 9685 Updated by: sbergmann Reported By: jamaz@centrum.cz Old-Status: Open Status: Feedback Bug Type: Arrays related Operating system: PHP Version: 4.0.3pl1 Assigned To: Comments: Does this problem persist with PHP 4.0.5? Previous Comments: --------------------------------------------------------------------------- [2001-03-11 16:23:59] jamaz@centrum.cz 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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9685&edit=2

« previous php.dev (#54248) next »