#46379 [Opn->Ver]: Infinite loop when parsing '#' in one line file.
ID: 46379
Updated by: jani@php.net
Reported By: marek dot miska at netart dot pl
-Status: Open
+Status: Verified
Bug Type: CGI related
Operating System: *
-PHP Version: 5.2.6
+PHP Version: 5.2CVS-2008-10-24 (only!)
New Comment:
verified with current PHP_5_2, not present in PHP_5_3 or HEAD.
Previous Comments:
------------------------------------------------------------------------
[2008-10-24 12:26:35] marek dot miska at netart dot pl
Description:
------------
Given one line script starting with "#" and without end line
character,
php enters infinite loop.
Reproduce code:
---------------
#and no new line
Expected result:
----------------
empty output
Actual result:
--------------
Infinite loop.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46379&edit=1
Thread (3 messages)