ID: 42813 User updated by: Sjon at react dot nl -Summary: Memcache->set() changes $value Reported By: Sjon at react dot nl Status: Open Bug Type: Unknown/Other Function Operating System: Linux 2.6.21.4 PHP Version: 5.2.4 New Comment:
Updated the title to be more specific Previous Comments: ------------------------------------------------------------------------ [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