php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53169 Segmentation Fault with parse_http_headers()
Submitted: 2010-10-26 17:11 UTC Modified: 2010-10-26 17:14 UTC
From: preinheimer@php.net Assigned: preinheimer (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.3.3 OS: Linux
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: preinheimer@php.net
New email:
PHP Version: OS:

 

 [2010-10-26 17:11 UTC] preinheimer@php.net
Description:
------------
When running this script at the command line (php ./crash.php) I get a 
segmentation fault. 

To reproduce, save this to a script, run an instance of PHP with the pecl_http 
extension installed, make popcorn. 

Test script:
---------------
<?php
$data = <<<DATA
HTTP/1.1 302
Date: Tue, 26 Oct 2010 14:53:04 GMT
Server: Apache/1.3.33 (Unix) mod_ssl/2.8.22 OpenSSL/0.9.7d SE/0.5.3
X-Pingback: http://www.onefortybpm.com/xmlrpc.php
X-Powered-By: PHP/4.4.8
Location: http://www.onefortybpm.com/
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8
DATA;
var_dump($data);
var_dump(http_parse_headers($data));


Expected result:
----------------
No seg fault

Actual result:
--------------
seg fault. 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-26 17:14 UTC] preinheimer@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: preinheimer
 [2010-10-26 17:14 UTC] preinheimer@php.net
should be at pecl, not here.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 10:01:32 2025 UTC