News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Reinheimer's Blog:
Memcached Constants - Lame Code
June 19, 2009 @ 10:27:26

If you've worked with memcached and have ever run into an error, you might get tossed a code, the value of the error's constant, rather than the actual constant name. Paul Reinheimer was seeing just that and decided to map out all of the constants in relation to their error codes for future reference.

I was running into a few errors, and getResultCode() was obligingly returning the value of the constant, rather than the constant itself. I had to look up what that value meant. For some reason I couldn't reflect the extension to get the constants and values thereof, so with some lame scraping you get the following.

He's included the list in both a normal text format and as a PHP array that can be cut and pasted directly into a library.

0 comments voice your opinion now!
code error constant memcached


blog comments powered by Disqus

Similar Posts

Abhinav Singh's Blog: MEMQ : Fast queue implementation using Memcached and PHP only

Oracle Coherence Blog: Getting Started With The Coherence Memcached Adaptor (and PHP)

Grzegorz Godlewski's Blog: Choosing your Source Code Management System

Chris Jones' Blog: PECL OCI8 1.4.4 is Available

PHPMaster.com: Code Templates, AutoHotKey, and Ditto: Speeding Up Development


Community Events





Don't see your event here?
Let us know!


code laravel api community wordpress application release interview podcast framework list bugfix language developer project series library introduction configure threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework