[sr-dev] [tracker] Comment added: Uninitialized $var returns 0 instead of <null> (Attachment added)

sip-router admin at sip-router.org
Thu Jul 21 17:02:43 CEST 2011


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#141 - Uninitialized $var returns 0 instead of <null>
User who did this - Alex Hermann (axlh)

----------
Meanwhile, i had already created a patch implementing a NULL type for scripts vars. It seems rather trivial. I'll test it in some real cases.



Example:
xlog("$$var(uninit) = $var(uninit)");

$var(null) = $null;
xlog("$$var(null) = $var(null)");

$var(test) = "test";
xlog("$$var(test) = $var(test)");

$var(test) = $null;
xlog("$$var(test) = $var(test)");

$var(test) = 1234;
xlog("$$var(test) = $var(test)");

$var(test) = $null;
xlog("$$var(test) = $var(test)");


Output:
$var(uninit) = <null>
$var(null) = <null>
$var(test) = test
$var(test) = <null>
$var(test) = 1234
$var(test) = <null>

----------

One or more files have been attached.

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=141#comment244

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list