[sr-dev] [tracker] Comment added: function for evaluating string value

sip-router admin at sip-router.org
Thu Jul 1 09:08:40 CEST 2010


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#78 - function for evaluating string value
User who did this - Juha Heinanen (jh)

----------
defines do not work here, since the idea is to be able to dynamically at runtime to change string values of cfg variables that may contain pseudo variables and transformations.  such strings may, for example, appear as parameters of http_queries,

what comes to implementation, this kind of stuff is normal in interpreted languages, for example


#!/usr/bin/php
<?
$format = "Printing number %d\n";
printf($format, 1234);
?>

correctly produces

jh at rautu:~$ /tmp/test.php 
Printing number 1234

what comes to my the specific trial implementation, it first calls spve fixup on the string value that may contain pseudo variables and then tries to get final string value based on the fixup result.  what exactly is wrong with this?  why all calls succeed, but final string value is not correct?




----------

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

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