[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] [PHP-BUG] Doc #60910 [NEW]: Result codes not listed for Memcached::getResultCode or in Pr
From:       "radu dot dineiu at gmail dot com"<php-bugs () lists ! php ! net>
Date:       2012-01-28 5:20:52
Message-ID: bug-60910 () bugs ! php ! net
[Download RAW message or body]

From:             
Operating system: Any
PHP version:      Irrelevant
Package:          Documentation problem
Bug Type:         Documentation Problem
Bug description:Result codes not listed for Memcached::getResultCode or in Predefined Constants

Description:
------------
---
From manual page: http://www.php.net/memcached.getresultcode
---

The possible result codes are not listed here or in the Predefined
Constants 
page. It would be extremely helpful to have a complete list of the result
code 
numeric values.

I submitted a note (which contains some wrong values by the way, need to
edit 
that) but I'm not sure if this is cataloged as "missing documentation" or
not, 
so I'm adding a report as well.

I found the error codes in the libmemcached source code 
(http://bazaar.launchpad.net/~libmemcached-
developers/libmemcached/trunk/view/head:/libmemcached-1.0/types/return.h).

    00 = MEMCACHED_SUCCESS
    01 = MEMCACHED_FAILURE
    02 = MEMCACHED_HOST_LOOKUP_FAILURE
    03 = MEMCACHED_CONNECTION_FAILURE
    04 = MEMCACHED_CONNECTION_BIND_FAILURE
    05 = MEMCACHED_WRITE_FAILURE
    06 = MEMCACHED_READ_FAILURE
    07 = MEMCACHED_UNKNOWN_READ_FAILURE
    08 = MEMCACHED_PROTOCOL_ERROR
    09 = MEMCACHED_CLIENT_ERROR
    10 = MEMCACHED_SERVER_ERROR
    11 = MEMCACHED_ERROR
    12 = MEMCACHED_DATA_EXISTS
    13 = MEMCACHED_DATA_DOES_NOT_EXIST
    14 = MEMCACHED_NOTSTORED
    15 = MEMCACHED_STORED
    16 = MEMCACHED_NOTFOUND
    17 = MEMCACHED_MEMORY_ALLOCATION_FAILURE
    18 = MEMCACHED_PARTIAL_READ
    19 = MEMCACHED_SOME_ERRORS
    20 = MEMCACHED_NO_SERVERS
    21 = MEMCACHED_END
    22 = MEMCACHED_DELETED
    23 = MEMCACHED_VALUE
    24 = MEMCACHED_STAT
    25 = MEMCACHED_ITEM
    26 = MEMCACHED_ERRNO
    27 = MEMCACHED_FAIL_UNIX_SOCKET
    28 = MEMCACHED_NOT_SUPPORTED
    29 = MEMCACHED_NO_KEY_PROVIDED
    30 = MEMCACHED_FETCH_NOTFINISHED
    31 = MEMCACHED_TIMEOUT
    32 = MEMCACHED_BUFFERED
    33 = MEMCACHED_BAD_KEY_PROVIDED
    34 = MEMCACHED_INVALID_HOST_PROTOCOL
    35 = MEMCACHED_SERVER_MARKED_DEAD
    36 = MEMCACHED_UNKNOWN_STAT_KEY
    37 = MEMCACHED_E2BIG
    38 = MEMCACHED_INVALID_ARGUMENTS
    39 = MEMCACHED_KEY_TOO_BIG
    40 = MEMCACHED_AUTH_PROBLEM
    41 = MEMCACHED_AUTH_FAILURE
    42 = MEMCACHED_AUTH_CONTINUE
    43 = MEMCACHED_PARSE_ERROR
    44 = MEMCACHED_PARSE_USER_ERROR
    45 = MEMCACHED_DEPRECATED
    46 = MEMCACHED_IN_PROGRESS
    47 = MEMCACHED_SERVER_TEMPORARILY_DISABLED
    48 = MEMCACHED_SERVER_MEMORY_ALLOCATION_FAILURE
    49 = MEMCACHED_MAXIMUM_RETURN
    11 = MEMCACHED_CONNECTION_SOCKET_CREATE_FAILURE = MEMCACHED_ERROR


Expected result:
----------------
I expect to see a full list of numeric result codes along with their 
representation.

Actual result:
--------------
The list is missing.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=60910&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=60910&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=60910&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=60910&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=60910&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60910&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=60910&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=60910&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=60910&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=60910&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=60910&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=60910&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=60910&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=60910&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=60910&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=60910&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60910&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=60910&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=60910&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=60910&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=60910&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=60910&r=mysqlcfg


-- 
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic