note 99819 added to memcache.delete

From: Date: Wed, 08 Sep 2010 19:47:41 +0000
Subject: note 99819 added to memcache.delete
Groups: php.notes 
Request: Send a blank email to php-notes+get-172385@lists.php.net to get a copy of this message
According to the documents, $timeout is not required, but for me if I did not include it regardless of value, it fired an error. I made a simple fix for it. class memcache_tools extends memcache { public function delete($key, $expire=0) { parent::delete($key, $expire); } } This will force it to behave as it should regardless of version. ---- Server IP: 208.69.120.55 Probable Submitter: 71.92.118.239 ---- Manual Page -- http://www.php.net/manual/en/memcache.delete.php Edit -- https://master.php.net/note/edit/99819 Del: integrated -- https://master.php.net/note/delete/99819/integrated Del: useless -- https://master.php.net/note/delete/99819/useless Del: bad code -- https://master.php.net/note/delete/99819/bad+code Del: spam -- https://master.php.net/note/delete/99819/spam Del: non-english -- https://master.php.net/note/delete/99819/non-english Del: in docs -- https://master.php.net/note/delete/99819/in+docs Del: other reasons-- https://master.php.net/note/delete/99819 Reject -- https://master.php.net/note/reject/99819 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172385) next »