|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-12-01 10:27 UTC] thies at cvs dot php dot net
[1999-12-16 23:36 UTC] evan at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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>"; for($i=0;$i<=count($newbody);$i++) { echo "DURING LOOP: ".count($newbody)."<BR>"; flush(); // flush doesnt affect it. echo $func($newbody[$i],$newlvl[$i]+$quote); } } bord_renderarticle_quotebars($gid,$mid,"bord_barquotes_printplain"); </script>