Check out the LimeSurvey source code on GitHub!

Warning: htmlspecialchars() limesurvey/classes/eval/ExpressionManager.php

More
4 years 11 months ago #73423 by sammy
May warning in httpd error log and web page display, while test 1.92RC3. Is any config missing or setting OFF?

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1461

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1461

Warning: htmlspecialchars() expects at most 3 parameters, 4 given in /var/www/html/limesurvey/classes/eval/ExpressionManager.php on line 1473

Please Log in to join the conversation.

More
4 years 11 months ago #73428 by TMSWhite
What version of PHP are you using?

From the manual here ( php.net/manual/en/function.htmlspecialchars.php ), htmlspecialchars does accept 4 parameters as of PHP version 5.2.3, so I'm guessing that you are using a version of PHP that predates 5.2.3

/Tom

Please Log in to join the conversation.

More
4 years 11 months ago #73430 by TMSWhite
This is fixed in 1.92 RC4 - it will check PHP version and use the appropriate htmlspecialchars() syntax for pre 5.2.3 versions of PHP.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form