|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56852 Port number is truncated when using 5-digit port
Submitted: 2006-02-21 14:27 UTC Modified: 2006-02-21 17:43 UTC
From: admin at ThinkSmart dot co dot th Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: admin at ThinkSmart dot co dot th
New email:
PHP Version: OS:


 [2006-02-21 14:27 UTC] admin at ThinkSmart dot co dot th
When connecting to a port number with 5 digits, the actual port used was quietly truncated to be 4 digits, e.g. becomes

Versions affected: pecl_http 0.21.0 and later
Versions working: pecl_http 0.20.0
PHP version: PHP 5.1.2

Reproduce code:
$url = '';
$ch = new HttpRequest($url, HttpRequest::METH_POST);

Expected result:
TCP/IP connection to at port 55000

Actual result:
TCP/IP connection to at port 5500


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-21 17:43 UTC]
This bug has been fixed in CVS.

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

In case this was a 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: Mon Mar 04 19:01:32 2024 UTC