[sr-dev] trouble with testing $var
Andrei Pelinescu-Onciul
andrei at iptel.org
Mon Nov 16 20:02:00 CET 2009
On Nov 10, 2009 at 12:49, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
>
> > We could generate an error message, but only at runtime (because we
> > don't know the type of $var(tmp) at script compile time).
>
> andrei,
>
> run-time would be great. current no-error implementation results in
> many non-working scripts, where people wonder what is wrong with them.
Latest sr_3.0 should have them, as warnings, e.g.:
WARNING: <core> [rvalue.c:987]: automatic string to int conversion for
"avp_test1" failed
WARNING: <core> [rvalue.c:1838]: rval expression conversion to int
failed (40,12-40,25)
^^^^^^^^^^^ expression position in the config.
The behaviour can now be controlled by defines.
More information about the sr-dev
mailing list