|  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
 [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: Sat Jun 03 21:03:40 2023 UTC