php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13624 Premature end of script headers
Submitted: 2001-10-10 04:07 UTC Modified: 2001-11-09 14:55 UTC
From: lbresler at club-internet dot fr Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.0.6 OS: Windows 2000
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: lbresler at club-internet dot fr
New email:
PHP Version: OS:

 

 [2001-10-10 04:07 UTC] lbresler at club-internet dot fr
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...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-10-10 04:24 UTC] mfischer@php.net
Please provide the smallest *complete* script which reproduces this.

- Markus
 [2001-11-09 14:55 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC