php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9685 Error message from Windows: Apache has caused an error in MSVCRT.DLL
Submitted: 2001-03-11 16:23 UTC Modified: 2001-06-01 16:11 UTC
From: jamaz at centrum dot cz Assigned:
Status: Closed Package: Arrays related
PHP Version: 4.0.3pl1 OS: Windows ME
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jamaz at centrum dot cz
New email:
PHP Version: OS:

 

 [2001-03-11 16:23 UTC] jamaz at centrum dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-07 12:39 UTC] sbergmann@php.net
Does this problem persist with PHP 4.0.5?

 [2001-06-01 16:11 UTC] sniper@php.net
no feedback, assumed fixed in PHP 4.0.5

 [2021-03-10 10:33 UTC] akiracaleb4 at gmail dot com
Thanks for the info i will try to figure it out for more   

https://www.mymilestonecard.run/
 [2022-01-08 11:51 UTC] hanalannister at tutanota dot com
Thanks for sharing, I found a lot of interesting information here.

https://milestoneapply.cards/wwwmilestoneapplycom/
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 02:01:28 2024 UTC