[OpenSER-Devel] returning 0 from function

Daniel-Constantin Mierla miconda at gmail.com
Mon Mar 3 09:16:32 CET 2008



On 03/03/08 06:21, Juha Heinanen wrote:
> i noticed that if allow_source_address_from_group() returns group value
> 0, statement
>
> $var(group) = allow_source_address_from_group();
>
> never returns.  is this intentional, i.e., are functions disallowed to
> return value 0?
>   
by returning 0, the execution of the script is interrupted -- same 
behavior as 'exit'.

Cheers,
Daniel

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



More information about the Devel mailing list