Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552 FS#93 : warn about implicit type conversions

sip-router

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

SIP Router Project

Tasklist

FS#93 - warn about implicit type conversions

Attached to Project: sip-router
Opened by Juha Heinanen (jh) - Saturday, 16 October 2010, 13:50 GMT
Last edited by Juha Heinanen (jh) - Saturday, 16 October 2010, 14:33 GMT
Task Type Improvement
Category Core
Status Assigned
Assigned To Andrei Pelinescu-Onciul (andrei)
Operating System All
Severity Medium
Priority Normal
Reported Version Development
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No

Details

add core parameter, such as “implicit_type_conversion_warnings”, that, if set, causes a warning to be printed to syslog when implicit type conversion happens during script execution. useful for detecting config bugs.

This task depends upon

Comment by Andrew Pogrebennyk (marduk) - Saturday, 11 June 2011, 15:33 GMT
Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method dokuwiki_TextFormatter::render() should not be called statically in /var/www/sip-router.kamailio.org/flyspray/includes/class.tpl.php on line 552

I vote for this, otherwise it's easy to run into the problem like:
get_profile_size("caller","$avp(s:username)","$avp(i:22)");
if($avp(i:22) >= $avp(s:sim_calls)) {
...
if there are 2 active calls for the user and concurrency limit is 11, string comparison will results in 2 > 11.
should be:
if($avp(i:22) >= $(avp(s:sim_calls){s.int})) {

Loading...