View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 14578 | Bug reports | _ Unknown | public | 2019-02-27 17:47 | 2019-08-29 10:09 |
| Reporter | efellows | Assigned To | LimeBot | ||
| Priority | none | Severity | crash | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 3.16.x | ||||
| Summary | 14578: Errors and warnings for PHP 7.0, 7.1 and 7.3 | ||||
| Description | Attached are the errors and warnings when checking PHP-version-compatibility of LimeSurvey with PHPCompatibility (https://github.com/PHPCompatibility/PHPCompatibility). | ||||
| Steps To Reproduce | third_party/bin/phpcs -v --standard=PHPCompatibility --extensions=php --ignore=/phpcompatibility/,/squizlabs/ --runtime-set testVersion 7.3 * | ||||
| Tags | PHP 7, PHP 7.1, PHP 7.2, PHP 7.3 | ||||
| Attached Files | php7-errors-warnings.txt (54,833 bytes)
FILE: application/core/LSYii_ClientScript.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
322 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$name" was used, and possibly
| | changed (by reference), on line 295.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/views/admin/survey/printablesurvey_view.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
10 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
-----------------------------------------------------------------------------------------------------------
FILE: application/views/admin/quotas/viewquotas_view.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
72 | WARNING | Closures / anonymous functions only have access to $this if used within a class or when bound to an object using bindTo(). Please verify.
104 | WARNING | Closures / anonymous functions only have access to $this if used within a class or when bound to an object using bindTo(). Please verify.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/libraries/admin/http/httpRequestIt.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------
420 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
949 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
950 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
951 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
993 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1162 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1167 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1280 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1288 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1349 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1357 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
---------------------------------------------------------------------------------------------------------
FILE: application/libraries/admin/pclzip/pclzip.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
5352 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
5383 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
----------------------------------------------------------------------------------------------------------
FILE: application/libraries/simpletester.php
----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
138 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
----------------------------------------------------------------------------------------------
FILE: application/helpers/qanda_helper.php
---------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------
50 | WARNING | The "case_insensitive" parameter for function define() is deprecated since PHP 7.3
51 | WARNING | The "case_insensitive" parameter for function define() is deprecated since PHP 7.3
---------------------------------------------------------------------------------------------------
FILE: application/helpers/adodb/adodb-time.inc_helper.php
--------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
725 | ERROR | The "is_dst" parameter for function mktime() is deprecated since PHP 5.1 and removed since PHP 7.0
725 | ERROR | The "is_dst" parameter for function gmmktime() is deprecated since PHP 5.1 and removed since PHP 7.0
--------------------------------------------------------------------------------------------------------------------
FILE: application/helpers/expressions/em_manager_helper.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8454 | ERROR | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$msg" was changed on line
| | 8451.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/helpers/admin/activate_helper.php
-------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------
448 | ERROR | Extension 'mssql' is removed since PHP 7.0
449 | ERROR | Extension 'mssql' is removed since PHP 7.0
-------------------------------------------------------------------------------------------------
FILE: application/helpers/globals.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
32 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$variable" was used, and
| | possibly changed (by reference), on line 31.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/helpers/Zend/XmlRpc/Value.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------
488 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
494 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
---------------------------------------------------------------------------------------------
FILE: application/helpers/Zend/XmlRpc/Client.php
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------
260 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'input_encoding'
261 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'output_encoding'
262 | WARNING | All previously accepted values for the $type parameter of iconv_set_encoding() have been deprecated since PHP 5.6. Found 'internal_encoding'
--------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/helpers/Zend/XmlRpc/Server.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
241 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$function" was used, and
| | possibly changed (by reference), on line 234.
282 | ERROR | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$argv" was changed on line
| | 280.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/helpers/sanitize_helper.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
89 | WARNING | INI directive 'magic_quotes_gpc' is deprecated since PHP 5.3 and removed since PHP 5.4
-------------------------------------------------------------------------------------------------------
FILE: application/config/internal.php
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------
26 | WARNING | INI directive 'mbstring.internal_encoding' is deprecated since PHP 5.6
27 | WARNING | INI directive 'mbstring.internal_encoding' is deprecated since PHP 5.6
---------------------------------------------------------------------------------------
FILE: application/controllers/admin/quotas.php
--------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------
568 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
--------------------------------------------------------------------------------------------
FILE: application/controllers/admin/printablesurvey.php
-----------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
92 | WARNING | The "case_insensitive" parameter for function define() is deprecated since PHP 7.3
95 | WARNING | The "case_insensitive" parameter for function define() is deprecated since PHP 7.3
-----------------------------------------------------------------------------------------------------
FILE: application/models/Survey.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
779 | WARNING | Method name "Survey::__useTranslationForSurveymenu" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/pear/PEAR.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
52 | WARNING | INI directive 'track_errors' is deprecated since PHP 7.2
770 | WARNING | Function dl() is deprecated since PHP 5.3
770 | WARNING | Function dl() is deprecated since PHP 5.3
789 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
881 | ERROR | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$mode" was changed on line
| | 871.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/pchart/pChart.class.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
3363 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
-----------------------------------------------------------------------------------------------------------------
FILE: application/third_party/pchart/pData.class.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
75 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split() instead
---------------------------------------------------------------------------------------------------------------
FILE: application/third_party/idna-convert/idna_convert.class.php
---------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
106 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
---------------------------------------------------------------------------------------------------------------
FILE: application/third_party/tcpdf/tcpdf.php
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------
10864 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
10864 | ERROR | Function mcrypt_get_cipher_name() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
10864 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
17778 | WARNING | Targeting a 'switch' control structure with a 'continue' statement is strongly discouraged and will throw a warning as of PHP 7.3.
-----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/tcpdf/include/tcpdf_static.php
----------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 24 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------------
143 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
453 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
453 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
453 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
453 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
453 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
453 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
453 | ERROR | The constant "MCRYPT_RAND" is deprecated since PHP 7.1 and removed since PHP 7.2
454 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
454 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
454 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
454 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
475 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
475 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
475 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
475 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
476 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
476 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
476 | ERROR | The constant "MCRYPT_RIJNDAEL_128" is deprecated since PHP 7.1 and removed since PHP 7.2
476 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
493 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
493 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
493 | ERROR | The constant "MCRYPT_ARCFOUR" is deprecated since PHP 7.1 and removed since PHP 7.2
493 | ERROR | The constant "MCRYPT_MODE_STREAM" is deprecated since PHP 7.1 and removed since PHP 7.2
1934 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
----------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/Twig/Lexer.php
------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------
90 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
94 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------------
FILE: application/third_party/Twig/Compiler.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
218 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
---------------------------------------------------------------------------------------------
FILE: application/third_party/Twig/ExpressionParser.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
48 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_arg(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$env" was used, and possibly
| | changed (by reference), on line 40.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/Twig/Extension/Debug.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
60 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_arg(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$env" was used, and possibly
| | changed (by reference), on line 42.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/html2text/src/Html2Text.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
236 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$options" was used, and
| | possibly changed (by reference), on line 235.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/http/http.php
---------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
---------------------------------------------------------------------------------------------------------
435 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
993 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
994 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
995 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1039 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1218 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1223 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1337 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1345 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1406 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
1414 | WARNING | The variable '$php_errormsg' is deprecated since PHP 7.2; Use error_get_last() instead
---------------------------------------------------------------------------------------------------------
FILE: application/third_party/ar-php/Arabic.php
------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AFFECTING 12 LINES
------------------------------------------------------------------------------------------------------------
498 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
503 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
508 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
513 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
517 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
518 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
519 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
520 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
525 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
527 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
533 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
535 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
------------------------------------------------------------------------------------------------------------
FILE: application/third_party/ar-php/Arabic/Query.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------------------
329 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
329 | ERROR | Function mysql_escape_string() is deprecated since PHP 5.3 and removed since PHP 7.0; Use mysqli::real_escape_string() instead
----------------------------------------------------------------------------------------------------------------------------------------------
FILE: application/third_party/ar-php/Arabic/CompressStr.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
194 | ERROR | "$this" can no longer be used in a plain function or method since PHP 7.1.
---------------------------------------------------------------------------------------------------------
FILE: application/third_party/phpmailer/src/PHPMailer.php
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
759 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
3599 | WARNING | The constant "FILTER_FLAG_HOST_REQUIRED" is deprecated since PHP 7.3
-------------------------------------------------------------------------------------------------------
FILE: application/third_party/pclzip/pclzip.lib.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
5360 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
5391 | ERROR | Function set_magic_quotes_runtime() is deprecated since PHP 5.3 and removed since PHP 7.0
----------------------------------------------------------------------------------------------------------
FILE: framework/gii/components/Pear/Text/Diff3.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
197 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
------------------------------------------------------------------------------------------------
FILE: framework/vendors/htmlpurifier/HTMLPurifier.standalone.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
6164 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$list" was used, and
| | possibly changed (by reference), on line 6163.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/vendors/markdown/markdown.php
------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
1458 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
------------------------------------------------------------------------------------------------------------
FILE: framework/vendors/Net_IDNA2/Net/IDNA2.php
---------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------
2243 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
---------------------------------------------------------------------------------------------
FILE: framework/web/services/CWebService.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
117 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$event" was used, and
| | possibly changed (by reference), on line 113.
242 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
243 | ERROR | Global variable '$HTTP_RAW_POST_DATA' is deprecated since PHP 5.6 and removed since PHP 7.0; Use php://input instead
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/web/CClientScript.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
618 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$name" was used, and possibly
| | changed (by reference), on line 598.
639 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$url" was used, and possibly
| | changed (by reference), on line 638.
655 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$id" was used, and possibly
| | changed (by reference), on line 654.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/web/CController.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1190 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$value" was used, and
| | possibly changed (by reference), on line 1185.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/yiilite.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
296 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$level" was used, and
| | possibly changed (by reference), on line 294.
1544 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$code" was used, and
| | possibly changed (by reference), on line 1538.
4109 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$value" was used, and
| | possibly changed (by reference), on line 4105.
6686 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$name" was used, and
| | possibly changed (by reference), on line 6666.
6699 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$url" was used, and possibly
| | changed (by reference), on line 6698.
6707 | WARNING | Since PHP 7.0, functions inspecting arguments, like func_get_args(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$id" was used, and possibly
| | changed (by reference), on line 6706.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/YiiBase.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
506 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$level" was used, and
| | possibly changed (by reference), on line 504.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/logging/CProfileLogRoute.php
-----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
182 | WARNING | Function create_function() is deprecated since PHP 7.2; Use an anonymous function instead
-----------------------------------------------------------------------------------------------------------
FILE: framework/base/CSecurityManager.php
---------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 47 ERRORS AND 1 WARNING AFFECTING 23 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------
225 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
225 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
225 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
225 | ERROR | Function mcrypt_enc_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
225 | ERROR | The constant "MCRYPT_RAND" is deprecated since PHP 7.1 and removed since PHP 7.2
226 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
226 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
227 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
227 | ERROR | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
228 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
228 | ERROR | Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
229 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
229 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
246 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
246 | ERROR | Function mcrypt_enc_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
248 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
248 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
249 | ERROR | Function mdecrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
250 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
250 | ERROR | Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
251 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
251 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
268 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
268 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
268 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
402 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
402 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
402 | ERROR | The constant "MCRYPT_DEV_URANDOM" is deprecated since PHP 7.1 and removed since PHP 7.2
479 | ERROR | INI directive 'session.entropy_length' is removed since PHP 7.1
480 | WARNING | INI directive 'session.entropy_length' is removed since PHP 7.1
534 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
534 | ERROR | Function mcrypt_module_get_supported_key_sizes() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
545 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
545 | ERROR | Function mcrypt_module_get_algo_key_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
581 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
581 | ERROR | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
581 | ERROR | The constant "MCRYPT_MODE_CBC" is deprecated since PHP 7.1 and removed since PHP 7.2
589 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
589 | ERROR | Function mcrypt_enc_get_key_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
590 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
590 | ERROR | Function mcrypt_enc_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
592 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
592 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
593 | ERROR | Function mdecrypt_generic() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
594 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
594 | ERROR | Function mcrypt_generic_deinit() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
595 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
595 | ERROR | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
---------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: framework/base/CApplication.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
804 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current value. The parameter "$code" was used, and
| | possibly changed (by reference), on line 797.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: third_party/kcfinder/core/bootstrap.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
30 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
------------------------------------------------------------------------------------------------
FILE: third_party/kcfinder/core/class/uploader.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------
220 | ERROR | list() will assign variable from left-to-right since PHP 7.0. Ensure all variables in list() are unique to prevent unexpected results.
278 | ERROR | Using 'break' outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
374 | ERROR | list() will assign variable from left-to-right since PHP 7.0. Ensure all variables in list() are unique to prevent unexpected results.
------------------------------------------------------------------------------------------------------------------------------------------------------
FILE: third_party/kcfinder/lang/it.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
1 | WARNING | File has mixed line endings; this may cause incorrect results
------------------------------------------------------------------------------------
FILE: third_party/kcfinder/lang/cs.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
1 | WARNING | File has mixed line endings; this may cause incorrect results
------------------------------------------------------------------------------------
FILE: third_party/kcfinder/lib/class_image.php
--------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------
119 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
120 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
--------------------------------------------------------------------------------------------
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 3.16.0+190225 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | |||||
| Database type & version | MariaDB 10.3 | ||||
| Server OS (if known) | |||||
| Webserver software & version (if known) | |||||
| PHP Version | 7.3 | ||||
|
|
|
|
Using PHP 7.3. |
|
|
@efellows / @ollehar actually the warning are normal because LS 3.16.X is based on PHP 5.5.3 right ? |
|
|
If all reported problems work on PHP 7.2 it's OK (IMO). I think Dominik already worked on this bug. |
|
|
Check with debug = 2 |
|
|
@ollehar actually everything works fine !! |
|
|
OK, then you can close it. :) |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-02-27 17:47 | efellows | New Issue | |
| 2019-02-27 17:47 | efellows | File Added: php7-errors-warnings.txt | |
| 2019-02-28 09:10 | efellows | Tag Attached: PHP 7 | |
| 2019-02-28 09:10 | efellows | Tag Attached: PHP 7.1 | |
| 2019-02-28 09:10 | efellows | Tag Attached: PHP 7.2 | |
| 2019-02-28 09:10 | efellows | Tag Attached: PHP 7.3 | |
| 2019-03-01 10:37 |
|
Assigned To | => dominikvitt |
| 2019-03-01 10:37 |
|
Status | new => assigned |
| 2019-05-10 17:09 | ollehar | Note Added: 51890 | |
| 2019-05-10 17:09 | ollehar | Note Added: 51891 | |
| 2019-07-15 11:41 |
|
Assigned To | dominikvitt => cdorin |
| 2019-08-27 12:35 | cdorin | Assigned To | cdorin => LimeBot |
| 2019-08-27 16:56 | LimeBot | Status | assigned => feedback |
| 2019-08-27 16:56 | LimeBot | Note Added: 53305 | |
| 2019-08-27 17:03 | ollehar | Note Added: 53306 | |
| 2019-08-27 17:03 | ollehar | Note Added: 53307 | |
| 2019-08-29 09:57 | LimeBot | Note Added: 53333 | |
| 2019-08-29 10:08 | ollehar | Note Added: 53334 | |
| 2019-08-29 10:09 | LimeBot | Status | feedback => closed |
| 2019-08-29 10:09 | LimeBot | Resolution | open => fixed |