php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57480 get() changes the datatype of variable of given as key
Submitted: 2007-01-17 10:17 UTC Modified: 2007-02-13 17:45 UTC
From: r at roze dot lv Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant 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: r at roze dot lv
New email:
PHP Version: OS:

 

 [2007-01-17 10:17 UTC] r at roze dot lv
Description:
------------
The datatype of given variable is changed to string.

Reproduce code:
---------------
<?
$mc = new Memcache;
$mc->connect('80.232.163.35',11212);

$id = 322;
var_dump($id);
$value = $mc->get($id);
var_dump($id);
?>

Expected result:
----------------
int(322)
int(322)

Actual result:
--------------
int(322)
string(3) "322"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-13 17:45 UTC] tony2001 at phpclub dot net
This has been fixed in CVS several months ago.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 04:01:28 2024 UTC