|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13385 nl2br hangs on specific strings
Submitted: 2001-09-22 04:32 UTC Modified: 2001-09-22 17:15 UTC
From: Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0CVS-2001-09-21 OS: Linux glibc 2.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2001-09-22 04:32 UTC]
bbonev@orange:~/php/php4$ ./php
<? echo nl2br("asd\n\ndsa\r\rqwe\r\n\newq\n\r\r") ?>

X-Powered-By: PHP/4.0.8-dev
Content-type: text/html

<b>Fatal error</b>:  Maximum execution time of 30 seconds exceeded in <b>-</b> on line <b>1</b><br>

btw. i have noticed this while trying to rewrite nl2br to be faster and more compatible.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-22 17:14 UTC]
it is fixed in current CVS
 [2001-09-22 17:15 UTC]
forgot to close
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Jun 07 12:03:41 2023 UTC