[Devel] length of non-exiting $fU

Daniel-Constantin Mierla daniel.mierla at voice-system.ro
Tue Jun 12 01:05:22 CEST 2007



On 06/11/07 19:24, Juha Heinanen wrote:
> during my testing spree, another thing popped up.  
>
> any explanation for this?
>
> 	xlog("L_INFO", "Legth of <$ru> user is <$(rU{s.len})>\n");
>
> produces
>
> 	Legth of <sip:192.98.101.10> user is <1>
>   
well, yes, this is kind of bug, and that's mainly because behind there 
is a value of integer 0, which gets converted to string and results in 
length 1. Obviously, the null flag should be checked and the result 
should be 0. I will think about a nice way of handling that. Thanks for 
catching it.

Cheers,
Daniel

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



More information about the Devel mailing list