Bug #53169 [Opn->Csd]: Segmentation Fault with parse_http_headers()
| From: | preinheimer@php.net | Date: | Tue, 26 Oct 2010 15:14:05 +0000 |
| Subject: | Bug #53169 [Opn->Csd]: Segmentation Fault with parse_http_headers() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155535@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53169&edit=1
ID: 53169
Updated by: preinheimer@php.net
Reported by: preinheimer@php.net
Summary: Segmentation Fault with parse_http_headers()
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.3.3
-Assigned To:
+Assigned To: preinheimer
Block user comment: N
New Comment:
should be at pecl, not here.
Previous Comments:
------------------------------------------------------------------------
[2010-10-26 17:11:53] 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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53169&edit=1