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=38…
Certainly something has changed since 9 Oct.
Hugh
--
Hugh Waite
Principal Design Engineer
Crocodile RCS Ltd.