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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 - 13 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 11:01:27 2024 UTC