Bug #13624: Premature end of script headers
| From: | lbresler at club-internet dot fr | Date: | Wed, 10 Oct 2001 08:07:27 +0000 |
| Subject: | Bug #13624: Premature end of script headers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-67665@lists.php.net to get a copy of this message | ||
From: lbresler@club-internet.fr
Operating system: Windows 2000
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: Premature end of script headers
I have a reproducible bug when I use a script.
A script contains the following code:
for ($i=0; $i<sizeof($motcle); $i++)
{
$href1="<a
href='visu.php?fiche=".$motcle[$i][1]."&hist=1'>";
$href2="</a>";
$txt=ereg_replace($motcle[$i][0],$href1.$motcle[$i][0].$href2,$txt);
Where $txt is a page of various txt.
If the ereg_replace function find an occurence of $motcle[][] in the $txt
variable, there give a crash of PHP.exe
This bug appears only when the script is call by an link.
If I affich the page with an // before the ereg_replace and then I delete
the // and I refresh the page it works...
--
Edit bug report at: http://bugs.php.net/?id=13624&edit=1