phpCA client

Tim Yardley
Wed, 31 Dec 2003 21:20:33 -0600

The benefit to returning the php NULL constant in this case is that it
differs from '\0', so you could actually store a null in memcached (assuming
the server would store it).  It seems to be the universal solution for PHP,
but then again, it may not apply in the same way to other languages.


-----Original Message-----
[] On Behalf Of Evan Martin
Sent: Wednesday, December 31, 2003 2:54 PM
To: Justin
Cc: 'Tim Yardley';
Subject: Re: phpCA client

On Wed, Dec 31, 2003 at 03:44:04PM -0500, Justin wrote:
> I wrote a wrapper around the memcached API that actually translates TRUE
> FALSE into the words "!TRUE!" and "!FALSE!" before sending them out.  When
> it retrieves, it returns a NULL if it gets a FALSE, or a FALSE if it gets
> !FALSE!. 

Well, that only works until you want to store the strings "!TRUE!" and
"!FALSE!", doesn't it?  :)

Evan Martin