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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bbonev@php.net
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Tue Jun 22 14:01:23 2021 UTC