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
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: 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)

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 04:01:30 2024 UTC