#45660 [NEW]: Memcache documentation / behavior mismatch on get()
| From: | joe at econversions dot co dot uk | Date: | Wed, 30 Jul 2008 15:36:21 +0000 |
| Subject: | #45660 [NEW]: Memcache documentation / behavior mismatch on get() | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-1026@lists.php.net to get a copy of this message | ||
From: joe at econversions dot co dot uk
Operating system: Ubuntu / Debian / Redhat
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Memcache documentation / behavior mismatch on get()
Description:
------------
There is a discrepancy in the documentation and actual behaviour of the
Memcache module regarding Memcache::get().
The documentation states that the get() method supports two parameters,
the second being a flag (of which only the compression flag seems listed).
It is apparent that the get() method only supports one parameter exactly,
raising an e_warning.
This is a documentation update request.
Reproduce code:
---------------
php > $m = new Memcache();
php > $m->addServer('localhost', 11211);
php > echo $m->get('test', MEMCACHE_COMPRESSED);
Warning: Memcache::get() expects exactly 1 parameter, 2 given in php shell
code on line 1
Expected result:
----------------
No error/warning, supplied flags passed through.
Actual result:
--------------
e_warning.
--
Edit bug report at http://bugs.php.net/?id=45660&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45660&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45660&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45660&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45660&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45660&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45660&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45660&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45660&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45660&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45660&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45660&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45660&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45660&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45660&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45660&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45660&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45660&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45660&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45660&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45660&r=mysqlcfg