note 99819 modified in memcache.delete by danbrown
| From: | danbrown@php.net | Date: | Thu, 09 Sep 2010 14:09:21 +0000 |
| Subject: | note 99819 modified in memcache.delete by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172406@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.
<?php
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.
--was--
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.
http://php.net/manual/en/memcache.delete.php