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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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 Dec 27 03:01:28 2024 UTC