if I use the memached module in kamailio to set STRING data in memcache,
this is not readable from PHP.

This is because kamailio uses the "val_flag" to distinguish the type of data ( int or string ).

There does not appear to be a standard for how data type is indicated ( in fact the protocol doc for memcache says "<flags> is an arbitrary 16-bit unsigned integer" )

I think the memcache module really needs a way to let the user specify the value of the flag.
something like a modparam to override the flag value on every set.

has anyone else run in to this ?

Sincerely

Jay Binks