php.net |  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: bbonev@php.net 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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
49 + 35 = ?
Subscribe to this entry?

 
 [2001-09-22 04:32 UTC] bbonev@php.net
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

<br>
<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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-22 17:14 UTC] bbonev@php.net
it is fixed in current CVS
 [2001-09-22 17:15 UTC] bbonev@php.net
forgot to close
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC