View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
12992 | Bug reports | Other | public | 2017-12-06 09:51 | 2019-05-10 15:36 |
Reporter | alex2k | Assigned To | |||
Priority | none | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.0.0dev | ||||
Fixed in Version | 3.15.x | ||||
Summary | 12992: PHP-function each() has been deprecated | ||||
Description | The PHP-function each() has been deprecated as of PHP 7.2.0 (https://wiki.php.net/rfc/deprecations_php_7_2#each), but is still used in Limesurvey: application/views/admin/survey/printablesurvey_view.php: while (list ($key, $val) = each($survey_output)) framework/gii/components/Pear/Text/Diff/Engine/native.php: while (list(, $y) = each($matches)) { third_party/kcfinder/lib/class_image.php: list($key, $width) = each($image); So each() should be replaced by foreach() which is also 10 times faster or key()/current()/next(). | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 2.72.5+171121 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MariaDB 10.2 | ||||
Server OS (if known) | RHEL 7 | ||||
Webserver software & version (if known) | Apache 2.4 | ||||
PHP Version | 7.2.0 | ||||
3.15.6+190108 is still containing each(), which e.g break upload of images via KCFinder (when GD is used). The corrupted image is then preventing from showing the directory at all in KCFinder. |
|
This issue is fixed. |
|
4.0beta1 released |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2017-12-06 09:51 | alex2k | New Issue | |
2018-05-23 11:25 |
|
Product Version | 2.7x.x => 4.0.0dev |
2019-01-16 19:55 | jelo | File Added: 2019kcfinderupload_each.png | |
2019-01-16 19:55 | jelo | Note Added: 50246 | |
2019-01-16 19:57 | jelo | Assigned To | => dominikvitt |
2019-01-16 19:57 | jelo | Status | new => assigned |
2019-02-11 17:10 |
|
Status | assigned => resolved |
2019-02-11 17:10 |
|
Resolution | open => fixed |
2019-02-11 17:10 |
|
Fixed in Version | => 3.15.x |
2019-02-11 17:10 |
|
Note Added: 50504 | |
2019-05-10 15:36 | c_schmitz | Note Added: 51886 | |
2019-05-10 15:36 | c_schmitz | Status | resolved => closed |