ID: 13624
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: Reproducible crash
Operating System: Windows 2000
PHP Version: 4.0.6
New Comment:
No feedback. Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-10-10 04:24:25] [EMAIL PROTECTED]
Please provide the smallest *complete* script which reproduces this.
- Markus
------------------------------------------------------------------------
[2001-10-10 04:07:27] [EMAIL PROTECTED]
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 this bug report at http://bugs.php.net/?id=13624&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]