#42813 [Opn->Bgs]: Memcache->set($key, $value) changes $value FALSE to empty string
| From: | pajoye@php.net | Date: | Mon, 01 Oct 2007 11:25:11 +0000 |
| Subject: | #42813 [Opn->Bgs]: Memcache->set($key, $value) changes $value FALSE to empty string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118015@lists.php.net to get a copy of this message | ||
ID: 42813
Updated by: pajoye@php.net
Reported By: Sjon at react dot nl
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Linux 2.6.21.4
PHP Version: 5.2.4
New Comment:
Please report bugs in: http://pecl.php.net/package/memcache > bug
Previous Comments:
------------------------------------------------------------------------
[2007-10-01 11:23:25] Sjon at react dot nl
Updated the title to be more specific
------------------------------------------------------------------------
[2007-10-01 10:53:30] Sjon at react dot nl
Description:
------------
Memcache->set($key, $value) changes $value and passes it back from the
wrapping function
Reproduce code:
---------------
$m = new Memcache();
$m->addServer('127.0.0.1', 11211);
function s($k, $v)
{
global $m;
var_dump($v);
$m->set($k, $v);
var_dump($v);
}
$x = FALSE;
var_dump($x);
s('x', $x);
var_dump($x);
Expected result:
----------------
bool(false)
bool(false)
bool(false)
bool(false)
Actual result:
--------------
bool(false)
bool(false)
string(0) ""
string(0) ""
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42813&edit=1