php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61184 Phar::webPhar() generates headers with trailing NUL bytes
Submitted: 2012-02-25 12:56 UTC Modified: 2012-03-05 01:31 UTC
From: [email protected] Assigned: nikic (profile)
Status: Closed Package: PHAR related
PHP Version: Irrelevant 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: [email protected]
New email:
PHP Version: OS:

 

 [2012-02-25 12:56 UTC] [email protected]
Description:
------------
Phar::webPhar() generates invalid 403, 404 and 301 headers, because the length of 
the headers in computed incorrectly, resulting in trailing NUL bytes to be sent.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-25 12:57 UTC] [email protected]
This is already fixed in http://svn.php.net/viewvc?view=revision&revision=323330.

This bug is only there to track the 5.4 merge, as per cjones request.
 [2012-02-25 12:57 UTC] [email protected]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: nikic
 [2012-02-25 13:00 UTC] [email protected]
-Summary: Phar::webPhar() generated headers with trailing NUL bytes +Summary: Phar::webPhar() generates headers with trailing NUL bytes
 [2012-03-02 08:21 UTC] [email protected]
Automatic comment from SVN on behalf of nikic
Revision: http://svn.php.net/viewvc/?view=revision&revision=323804
Log: Merge: Fix bug #61184 Phar::webPhar() generates headers with trailing NUL bytes
 [2012-03-05 01:31 UTC] [email protected]
-Status: Assigned +Status: Closed
 [2012-03-05 01:31 UTC] [email protected]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

http://svn.php.net/viewvc?view=revision&revision=323804
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jun 18 18:01:31 2025 UTC
OSZAR »