Bug #13385: nl2br hangs on specific strings

From: Date: Sat, 22 Sep 2001 02:32:37 +0000
Subject: Bug #13385: nl2br hangs on specific strings
Groups: php.dev 
Request: Send a blank email to php-dev+get-66287@lists.php.net to get a copy of this message
From: bbonev@php.net Operating system: Linux glibc 2.2 PHP version: 4.0CVS-2001-09-21 PHP Bug Type: Strings related Bug description: nl2br hangs on specific strings 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 bug report at: http://bugs.php.net/?id=13385&edit=1

« previous php.dev (#66287) next »