Doc #70992 [NEW]: Wrong documentation

From: Date: Sat, 28 Nov 2015 22:49:10 +0000
Subject: Doc #70992 [NEW]: Wrong documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12889@lists.php.net to get a copy of this message
From: fekzol dot 13ker at gmail dot com Operating system: Ubuntu 14.04 PHP version: 5.6Git-2015-11-28 (snap) Package: memcache Bug Type: Documentation Problem Bug description:Wrong documentation Description: ------------ --- From manual page: http://www.php.net/memcached.set --- The exmaple code is wrong: /* expire 'object' key in 5 minutes */ $m->set('object', new stdclass, time() + 300); Test script: --------------- The example is wrong. $m->set('object', new stdclass, time() + 300); If you want to store the data for 5 minute, you have to do this: /* expire 'object' key in 5 minutes */ $m->set('object', new stdclass, 300); Not: time() + 300; -- Edit bug report at https://bugs.php.net/bug.php?id=70992&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70992&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70992&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70992&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70992&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70992&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70992&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70992&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70992&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70992&r=support Expected behavior: https://bugs.php.net/fix.php?id=70992&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70992&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70992&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70992&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70992&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70992&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70992&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70992&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70992&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70992&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70992&r=mysqlcfg

« previous php.doc.bugs (#12889) next »