php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #52877 Incorrect example
Submitted: 2010-09-18 06:07 UTC Modified: 2010-10-20 08:09 UTC
From: jon at phpsitesolutions dot com Assigned: kalle (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jon at phpsitesolutions dot com
New email:
PHP Version: OS:

 

 [2010-09-18 06:07 UTC] jon at phpsitesolutions dot com
Description:
------------
http://us.php.net/manual/en/memcached.fetch.php

The example displayed has incorrect expected output.
It states that the output would look something like:
array(
    array(),
    array()
)

That is not correct. The docs state that the function returns the next result, 
which means the output would look like:
array()
array()


So either the expected output is incorrect, or the docs are incorrect.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-09-19 15:39 UTC] markskilbeck@php.net
-Assigned To: +Assigned To: andrei
 [2010-09-19 15:39 UTC] markskilbeck@php.net
I've assigned this to Andrei as he is the package maintainer and can comment further on this issue.
 [2010-10-20 08:08 UTC] kalle@php.net
Automatic comment from SVN on behalf of kalle
Revision: http://svn.php.net/viewvc/?view=revision&revision=304532
Log: Fixed bug #52877 (Incorrect example)
 [2010-10-20 08:09 UTC] kalle@php.net
-Assigned To: andrei +Assigned To: kalle
 [2010-10-20 08:09 UTC] kalle@php.net
Indeed I can confirm this behaviour with latest git revision of memcached, fixed in SVN
 [2010-10-20 08:09 UTC] kalle@php.net
-Status: Assigned +Status: Closed
 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a0705423606ff20b7e9223d20bdda0f9ee96b521
Log: Fixed bug #52877 (Incorrect example)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 07:00:01 2026 UTC