Edit report at http://bugs.php.net/bug.php?id=53169&edit=1

 ID:                 53169
 Updated by:         preinhei...@php.net
 Reported by:        preinhei...@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] preinhei...@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

Reply via email to