|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #46379 Infinite loop when parsing '#' in one line file.
Submitted: 2008-10-24 12:26 UTC Modified: 2008-11-03 23:39 UTC
From: marek dot miska at netart dot pl Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 5.2CVS-2008-10-24 (only!) OS: *
Private report: No CVE-ID: None
 [2008-10-24 12:26 UTC] marek dot miska at netart dot pl
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-10-24 15:39 UTC]
verified with current PHP_5_2, not present in PHP_5_3 or HEAD.
 [2008-11-03 23:39 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Sep 28 17:05:52 2022 UTC