|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2005-10-03 06:45 UTC] tony2001 at phpclub dot net
  [2005-10-03 07:03 UTC] mikael at chl dot chalmers dot se
  [2005-10-03 07:26 UTC] tony2001 at phpclub dot net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 21:00:02 2025 UTC | 
Description: ------------ memcache_add() triggers an E_NOTICE when item exists instead of just returning FALSE See memcache.c line 604, perhaps one could check if "add" has been executed and treat the result differently if so Using PHP 4.4.0 actually, the drop-down lacked that option though Btw, is there any development going on to include multiple server support? Reproduce code: --------------- error_reporting(E_ALL); $conn = memcache_pconnect('localhost', 11211); memcache_set($conn, 'somekey', 'foo'); memcache_add($conn, 'somekey', 'foobar'); Expected result: ---------------- No notice triggered, but memcache_add should return FALSE Actual result: -------------- "Notice: memcache_add(): an error occured while trying to store the item on the server" and returns FALSE