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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
16 - 7 = ?
Subscribe to this entry?

 
 [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: Thu May 02 06:01:32 2024 UTC