|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: marek dot miska at netart dot pl
New email:
PHP Version: OS:


 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Feb 26 07:01:28 2024 UTC