- Posts: 5033
- Thank you received: 1257
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
PHP 7.2 and LimeSurvey 3.X?
- jelo
- Topic Author
- Offline
- Platinum Member
E.g. Yii framework inside LimeSurvey is version Yii 1.1.19 (any modifications?).
The official statement from them is: Yii 1.1.20 is compatible with PHP 7.2.
raw.githubusercontent.com/yiisoft/yii/1.1.20/CHANGELOG
I currently recommend to stay on PHP 7.1 (cause PHP 7.2. is no longer shipping with certain libraries which can break current installations).
BTW: There should be a requirements check inside the LimeSurvey GUI (not only in the installer).
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
The issue with Yii update is there are already update in Yii core. 3 comit currently : one fixed in 1.1.19beta and one related to PHP7.2.12.
Maybe you're right ! must update Yii
Edit :
Looking at diff : github.com/LimeSurvey/LimeSurvey/pull/1181/files more hacked framework file then shown in commit …
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
I don't like requirements which state version X.Y.Z or higher alone.
I like requirements which state the minimum and the maximum version tested.
This release does have the following requirements:
*MySQL 5.5.3 or later OR Microsoft SQL Server 2005 or later OR Postgres 8.1 or later
*PHP 5.5.9 or later with the following modules/libraries enabled:
*mbstring (Multibyte String Functions) extension library
*PDO database driver for MySQL (pdo_mysql or pdo_mysqli) or Postgres (pdo_pgsql) or MSSQL (pdo_sqlsrv for Windows and pdo_dblib for Linux)
E.g. if you install LS 3.X under PHP 7.2. under Windows you will have to enable the PHP openssl extension to get Yii random numbers working, which LimeSurvey needs to create tokens.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
Thanks, let's see if that's get accepted soon.DenisChenu wrote: Looking at diff : github.com/LimeSurvey/LimeSurvey/pull/1181/files more hacked framework file then shown in commit …
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
The KCFinder has still code which contains each().
There is a much older bugreport from Dec. 2017.
bugs.limesurvey.org/view.php?id=12992
So be aware that PHP 7.1. currently is the safe bet when it comes to LimeSurvey.
Even if some setups are already working under PHP 7.2
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Don't say that … issue can exist but same in 7.1 . And here : about each : you have it only if set debug=2 …jelo wrote: LimeSurvey is not ready for PHP 7.2.
some are already fixed, and for external libraryt : if we don't use the fucntion with each : why fix it (we don't use htmlfilter of phpmailer).jelo wrote: bugs.limesurvey.org/view.php?id=12992
But the screenshot bugs.limesurvey.org/view.php?id=12992#c50246 was put on a PHP7.1 report : maybe 7.2 show the issue , but 7.1 have the issue too.jelo wrote: So be aware that PHP 7.1. currently is the safe bet when it comes to LimeSurvey.
Even if some setups are already working under PHP 7.2
Since i can't reproduce the issue in 7.2
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
I can reproduce that issue under php 7.2.13. Without debug=2.Since i can't reproduce the issue in 7.2
It's the thumbnail generation part, which is done via a graphic library.
KCFinder is choosing the graphic library via 'imageDriversPriority' => "imagick gmagick gd".
So we have certain parts in the code, which depending on the OS/library environment is not working under PHP 7.2. LimeSurvey requirements recommend gd2. Do you use gd2 or imagick when trying to reproduce the issue?
As long as such "automatic" choosing of differrent libraries is happening, it doesn't is enough to compare PHP version numbers.
E.g. if LimeSurvey 3 is used under PHP 7.2. windows, you need OpenSSL to create a token.
The Yii framework is used to create the token.
It senses for three ways to get the random data
if(function_exists('openssl_random_pseudo_bytes'))
if(function_exists('mcrypt_create_iv')
if(($file=@fopen('/dev/urandom','rb'))
Under Windows /dev/unrandom is not available and from php 7.2 on mcrypt is gone too.
So you endup with the requirement to have openssl extension active on windows php 7.2 to run LimeSurvey.
The requirements of LimeSurvey don't reflect that.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
- jelo
- Topic Author
- Offline
- Platinum Member
- Posts: 5033
- Thank you received: 1257
bugs.limesurvey.org/view.php?id=14436
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
- DenisChenu
- Offline
- LimeSurvey Community Team
- Posts: 13643
- Thank you received: 2491
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.