View Issue Details

IDProjectCategoryView StatusLast Update
12993Bug reports[All Projects] Otherpublic2017-12-06 10:43
Reporteralex2kAssigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary12993: PHP-function create_function() has been deprecated
DescriptionThe PHP-function create_function() has been deprecated as of PHP 7.2.0 (https://wiki.php.net/rfc/deprecations_php_7_2#create_function), but is still used in Limesurvey:

framework/web/CHttpRequest.php: usort($languages,create_function('$a,$b','if($a[0]==$b[0]) {return 0;} return ($a[0]<$b[0]) ? 1 : -1;'));
framework/logging/CProfileLogRoute.php: $func=create_function('$a,$b','return $a[4]<$b[4]?1:0;');
framework/yiilite.php: usort($languages,create_function('$a,$b','if($a[0]==$b[0]) {return 0;} return ($a[0]<$b[0]) ? 1 : -1;'));
framework/vendors/markdown/markdown.php: $this->utf8_strlen = create_function('$text', 'return preg_match_all(
application/helpers/common_helper.php: $text = preg_replace_callback ('@<script[^>]*?>.*?</script>@si', create_function(
application/helpers/common_helper.php: uksort($fieldnames, create_function('$a,$b', 'return strlen($a) < strlen($b);'));
application/helpers/expressions/em_core_helper.php: $iNumArg=count(array_filter(array($hour,$minute,$second,$month,$day,$year),create_function('$a','return $a !== null;')));
TagsNo tags attached.
Complete LimeSurvey version number (& build)2.72.5+171121
I will donate to the project if issue is resolvedNo
Browser
Database & DB-VersionMariaDB 10.2
Operating System (Server)RHEL 7
Webserver software & versionApache 2.4
PHP Version7.2.0

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2017-12-06 10:43 alex2k New Issue