|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-08-03 21:02 UTC] dmytton@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 18 01:00:02 2026 UTC |
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.