[OpenSIPS-Devel] [ opensips-Bugs-3586730 ] $var variables cleanup on new request

SourceForge.net noreply at sourceforge.net
Tue Nov 13 16:03:11 CET 2012


Bugs item #3586730, was opened at 2012-11-13 07:03
Message generated for change (Tracker Item Submitted) made by nikbyte
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3586730&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: 1.8.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nick Altmann (nikbyte)
Assigned to: Nobody/Anonymous (nobody)
Summary: $var variables cleanup on new request

Initial Comment:
I found that in my script I do something like (the same tail of every log message is because of m4 macros):

route {
    xlog("L_INFO", "[MAIN] log message [$var(info)]");
    $var(info) = "blablabla";
    xlog("L_INFO", "[MAIN] another message [$var(info)]");
}

Interesting that in first xlog the $var(info) is not null ! 
And instead of "null" I see there something interesting values from other client's requests.

I think we should clean up all $var variables before request, shouldn't we?


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086410&aid=3586730&group_id=232389



More information about the Devel mailing list