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
 [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

Pull Requests

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 Dec 27 03:01:28 2024 UTC