Daniel-Constantin Mierla writes: > assuming NULL value can producing unexpecting results. For example, > assigning null to an avp will delete first avp with that name. It might > not be what exactly someone expects from such operation -- instead of > getting a new avp, you get deleted an existing one.
daniel, thanks for the explanation. so what is the conclusion? in my opinion, the script should be readable, i.e., the behavior should be the same as what the code looks like. my suggestion is to implement the same behavior what php has, i.e., code #!/usr/bin/php5 <? $a = $b; if ($a === null) print "true\n"; ?> prints "true" without any error messages. thus a value of a non-existing avp or a script variable to which no value has been assigned would be null, which is not same as 0. -- juha _______________________________________________ Devel mailing list [email protected] http://openser.org/cgi-bin/mailman/listinfo/devel
