php.net |  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
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: 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
Description:
------------
When connecting to a port number with 5 digits, the actual port used was quietly truncated to be 4 digits, e.g. http://192.168.0.1:55000/ becomes http://192.168.0.1:5500/.

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 = 'http://192.168.0.1:55000/';
$ch = new HttpRequest($url, HttpRequest::METH_POST);

Expected result:
----------------
TCP/IP connection to 192.168.0.1 at port 55000

Actual result:
--------------
TCP/IP connection to 192.168.0.1 at port 5500

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-21 17:43 UTC] mike@php.net
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 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-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 24 09:03:33 2021 UTC