php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58000 Ignore memcache.default_port in memcache_connect
Submitted: 2008-01-09 11:18 UTC Modified: 2008-01-09 13:30 UTC
From: up at co dot inbox dot lv Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: 5.2.1 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:
Package:
Bug Type:
Summary:
From: up at co dot inbox dot lv
New email:
PHP Version: OS:

 

 [2008-01-09 11:18 UTC] up at co dot inbox dot lv
Description:
------------
<? memcache_connect('127.0.0.1') ?>
gives

PHP Warning:  memcache_connect() [<a href='function.memcache-connect'>function.memcache-connect</a>]: Can't connect to 127.0.0.1:0, Failed to parse address &quot;127.0.0.1&quot; (0)

Reproduce code:
---------------
The problem seems in php_mmc_connect() function, which in 2.2.1 version has "long port = MEMCACHE_G(default_port), ...", but in 3.0.0 just "long tcp_port = 0, ..."


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-09 13:30 UTC] mikael at synd dot info
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: Mon Apr 29 16:01:31 2024 UTC