Paul Reinheimer's Blog: Memcached Constants - Lame Code

Courtesy PHPDeveloper.org  Fri, 06/19/2009 - 09:27

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....


 

More related items

Jeremy Cook's Blog: Implementing the ArrayAccess...
Jeremy Cook is back with the next part of his series looking at the handy features PHP's SPL provides. In this new post he looks at the ArrayAccess interface and how it can make your data...

Storing Session Data In Cookies: Problems And...
Image via Wikipedia Back from my extended leave of absence, I’ll re-open the dusty cobwebbed depths of this blog to echo the sentiments of Paul Reinheimer in his recent article...

Paul Reinheimer's Blog: The Danger of Hooks
Paul Reinheimer has a recent post to his blog talking about the danger of "hooks" in your development - the functionality several frameworks and other tools come with to allow you to add...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com