|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2013 Infinite loop where it shouldnt be
Submitted: 1999-08-09 17:49 UTC Modified: 1999-12-16 23:36 UTC
From: sander at pilon dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Beta 2 OS: Linux 2.2
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.
Block user comment
Status: Assign to:
Bug Type:
From: sander at pilon dot com
New email:
PHP Version: OS:


 [1999-08-09 17:49 UTC] sander at pilon dot com
Zeev knows about this.... this program loops, and it shouldnt as far as I can see:

<script language="php">
	 * 	Prints a bar-quoted line. 
	function 	bord_barquotes_printplain($line,$level,$first=true)
		$len = strlen($line);
		$idx = $len-1;
		if( $line[$idx] != "\n" ) echo "\n";
		return $line;
	 *  Renders a complete article, with barquotes.
	function	bord_renderarticle_quotebars($group,$mid,$func="bord_barquotes_print",$quote=0)
		$newbody[] = "PHP4 BETA2 TEST";
		echo "BEFORE LOOP: ".count($newbody)."<BR>";
			echo "DURING LOOP: ".count($newbody)."<BR>";
			flush();		// flush doesnt affect it.
			echo $func($newbody[$i],$newlvl[$i]+$quote);



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-12-01 10:27 UTC] thies at cvs dot php dot net
doesn't loop with CVS version any more;-)
 [1999-12-16 23:36 UTC] evan at cvs dot php dot net
This has been fixed in the latest PHP4 CVS. Thanks.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Apr 18 15:01:24 2021 UTC