php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59313 Segmentation fault when passing invalid url to http_get()
Submitted: 2010-07-17 15:47 UTC Modified: 2011-05-05 02:05 UTC
From: claudiu dot raveica at gmail dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.3.2 OS: Linux (Fedora 13)
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: claudiu dot raveica at gmail dot com
New email:
PHP Version: OS:

 

 [2010-07-17 15:47 UTC] claudiu dot raveica at gmail dot com
Description:
------------
Segmentation fault when passing invalid port in url to http_get()

How to reproduce:

http_get('http://example.com:100000/');

PHP Warning:  http_get(): Could not parse URL (http://example.com:100000/)
Segmentation fault (core dumped)


Reproduce code:
---------------
How to reproduce:

http_get('http://example.com:100000/');

PHP Warning:  http_get(): Could not parse URL (http://example.com:100000/)
Segmentation fault (core dumped)


Expected result:
----------------
Only the warning that it can parse URL and not the seg fault :)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-05-05 02:05 UTC] mike@php.net
This bug has been fixed in SVN.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC