[Devel] null != null

Daniel-Constantin Mierla daniel at voice-system.ro
Tue Jun 12 00:27:39 CEST 2007


setting $var(xyz) to null makes its value to integer 0. There is no 
'null' state for the value of the $var(xyz), same as for $avp(xyz) -- 
making avp null actually deletes it.

In your comparison, you test integer '0' against unexisting avp.

Cheers,
Daniel

On 06/11/07 19:34, Juha Heinanen wrote:
> Juha Heinanen writes:
>
> here is a proof of a third one which i have suspected already earlier.
>
> -- juha
>
> statements
>
> 	$var(test) = null;
> 	$avp(s:test) = null;
> 	if ($var(test) != $avp(s:test)) {
> 		xlog("L_INFO", "$var(test) != $avp(s:test)\n");
> 	};
>
> produce
>
> 0 != <null>
>
> _______________________________________________
> Devel mailing list
> Devel at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/devel
>
>   



More information about the Devel mailing list