|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-02 01:48 UTC] mattias at segerdahl dot info
[2003-07-02 01:57 UTC] mattias at segerdahl dot info
[2003-07-02 08:11 UTC] sniper@php.net
[2003-07-02 08:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 21:00:02 2025 UTC |
Description: ------------ When running the following test, php dies on the 2nd loop preg_match() Reproduce code: --------------- ==[test.php]=========================== <?php $fp = fopen("dirlist.template.php","r"); while(!feof($fp)) { echo 'start<br>' . "\n"; echo preg_replace("/\[!([^\]]+)!\]/e","\$this->tpl[\"\\1\"]",fgets($fp,1024)); echo 'there<br>' . "\n"; } fclose($fp); show_source("test2.php"); show_source("dirlist.template.php"); ?> ======================================= ==[dirlist.template.php]=============== <tr> <td width="20"><img src="templates/images/ico_[!FILETYPE!].gif" width="16" height="16" alt="" border="0"></td> <td align="left"><a href="[!FILEURL!]">[!FILENAME!]</a></td> <td align="right">[!VERSIONS!]</td> <td align="right">[!DATETIME!]</td> </tr> ======================================= Expected result: ---------------- start end start Actual result: -------------- start end start end start end start end start end start end