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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 03:01:29 2024 UTC