[sr-dev] Assigning a null value from a $sht to a $var fails after upgrade on master
Hugh Waite
hugh.waite at crocodile-rcs.com
Mon Nov 25 13:51:29 CET 2013
Hello,
We are having an issue with PVs after upgrading to the latest master
(i.e. 4.1.0-pre1) which might be related to the comparison of $null and 0
In our previous version (compiled on 9th October) the following code
worked. It is using the htable as a DB cache
$var(ip_trusted) = $sht(trusted=>$var(srcip));
if($var(ip_trusted) == $null) {
/* DB lookup */
$sht(trusted->$var(srcip)) = $var(ip_trusted);
}
After upgrading, the first line is not working as expected. The htable
value is null (not assigned), but the $var(ip_trusted) value is assigned
the value 0, so the check fails.
Is this related to the pv comparison bugfix
(http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=3856e9e81c8410b220b893a0dfe7114bba6bdc0d)?
Certainly something has changed since 9 Oct.
Hugh
--
Hugh Waite
Principal Design Engineer
Crocodile RCS Ltd.
More information about the sr-dev
mailing list