<div dir="ltr">This appears to only impact reading from memcache.<div><br></div><div>ive had a read through the code and I dont see any way to write a string to memcache with the ( memcache ) <span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">flag of 0 .</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">INTS write as Flag 0</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">but all Strings are Flag 1 </span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">and I cant read a string with flag 1 in php.</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">( which i agree is also a bug on the php side, but I have virtually no chance of getting that fixed )</span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);font-size:12.8px;white-space:pre-wrap">Jay</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 2 September 2016 at 16:03, Dragos Oancea <span dir="ltr"><<a href="mailto:dragos.oancea@athonet.com" target="_blank">dragos.oancea@athonet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jay,<br>
<br>
Have you tried this ?<br>
modparam("memcached", "stringify", 1)<br>
<a href="http://www.kamailio.org/docs/modules/4.4.x/modules/memcached.html#memcached.p.stringify" rel="noreferrer" target="_blank">http://www.kamailio.org/docs/<wbr>modules/4.4.x/modules/<wbr>memcached.html#memcached.p.<wbr>stringify</a><br>
<br>
Cheers,<br>
Dragos<br>
<div><div class="h5"><br>
On 02/09/2016 03:45, jay binks wrote:<br>
> if I use the memached module in kamailio to set STRING data in memcache,<br>
> this is not readable from PHP.<br>
><br>
> This is because kamailio uses the "val_flag" to distinguish the type of<br>
> data ( int or string ).<br>
><br>
> There does not appear to be a standard for how data type is indicated (<br>
> in fact the protocol doc for memcache says "<flags> is an arbitrary<br>
> 16-bit unsigned integer" )<br>
><br>
> I think the memcache module really needs a way to let the user specify<br>
> the value of the flag.<br>
> something like a modparam to override the flag value on every set.<br>
><br>
> has anyone else run in to this ?<br>
><br>
> Sincerely<br>
><br>
> Jay Binks<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
> <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
> <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Sincerely<br><br>Jay</div>
</div>