|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-02-13 18:04 UTC] tony2001 at phpclub dot net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ When using the set-function of the Memcache-package and do not define the key you want to set a certain value to, the package incorrectly uses the value-length as a key. Reproduce code: --------------- <? $mc = new memcached; $value = array("foo" => "bar"); $mc->set($undefined_key, $value); ?> Expected result: ---------------- Memcache should do nothing at all, since the defined keyname is null. Actual result: -------------- <10 new client connection <10 set 1 1164711401 26 >10 CLIENT_ERROR bad command line format <10 a:1:{s:3:"foo";s:3:"bar";} >10 ERROR <10 connection closed.