php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59887 A small bug of memcache.php
Submitted: 2011-08-09 23:56 UTC Modified: 2015-05-28 17:58 UTC
Votes:4
Avg. Score:3.8 ± 1.6
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: ericzhang dot buaa at gmail dot com Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.3.5 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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ericzhang dot buaa at gmail dot com
New email:
PHP Version: OS:

 

 [2011-08-09 23:56 UTC] ericzhang dot buaa at gmail dot com
Description:
------------
Line57 of memcache.php is "return values" now, but it should be "return $values"! The absence of "$" make this script can not run.

Reproduce code:
---------------
 51 function get_host_port_from_server($server){
 52     $values = explode(':', $server);
 53     if (($values[0] == 'unix') && (!is_numeric( $values[1]))) {
 54         return array($server, 0);
 55     }
 56     else {
 57         return values;
 58     }
 59 }


Patches

fix-variable-anchor-memcache-doc (last revision 2011-12-05 14:55 UTC by mvfreelancer at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-28 17:58 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2015-05-28 17:58 UTC] cmb@php.net
Thanks for your bug report and the patch. The issue has been fixed
as of 2.2.7 and 3.0.7.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 20:01:34 2025 UTC