Bug #13385 Updated: nl2br hangs on specific strings

From: Date: Sat, 22 Sep 2001 21:14:51 +0000
Subject: Bug #13385 Updated: nl2br hangs on specific strings
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-66361@lists.php.net to get a copy of this message
ID: 13385 Updated by: bbonev Reported By: bbonev@php.net Status: Open Bug Type: Strings related Operating System: Linux glibc 2.2 PHP Version: 4.0CVS-2001-09-21 New Comment: it is fixed in current CVS Previous Comments: ------------------------------------------------------------------------ [2001-09-22 04:32:37] 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. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13385&edit=1

« previous php.dev (#66361) next »