[OpenSER-Users] Variable $rc

Henning Westerholt henning.westerholt at 1und1.de
Wed Jan 16 11:00:44 CET 2008


On Tuesday 15 January 2008, Douglas Garstang wrote:
> What's the point of the pseudo variable $rc?
>
> If I use avp_db_query() with:
> invalid SQL, then rc = -1.
> database down: then rc = -1.
> Everything fine... then rc = -1!!!

Hi Douglas,

i did a short look at the code, and it really should return 1 on success, as 
stated from Iñaki too. Strange.

Cheers,

Henning




More information about the sr-users mailing list