Dan Pascu writes:

 > I have these messages in log:
 > 
 > core:do_assign: no value in right expression
 > core:do_assign: error at line: 246
 > 
 > They appear everytime I have something like this in my script:
 > 
 > $avp(s:some_var) = $hdr(some_header);
 > 
 > and the header is missing.
 >  > IMO, those messages should be moved to debug level, because it makes no 
 > sense to have to write every such statement as:
 > 
 > if ($hdr(some_header)) {
 >    $avp(s:some_var) = $hdr(some_header);
 > }

dan,

this is an old thread.  i tried to suggest that openser should behave
like php where you can assign value of a non-set variable, but didn't
get support.  if i remember correctly, the reason was that avps or pvs
cannot have a null value.

-- juha

_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to