Ticket #2213 (closed defect: wontfix)
Incompatibility with PHP 5.2
Reported by: | RaphAstronome | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | module:core | Version: | |
Severity: | normal | Keywords: | |
Cc: |
Description
This update use the "?:" form of ternary operator (with nothing in middle part). This is possible only with PHP >= 5.3 and not with PHP 5.2.
When using PHP 5.2 I got an error in inc/libs/clearbricks/dblayer/dblayer.php at line 591 :
$v['order'] = (strtoupper($v['order']) == 'DESC' ?: '');
(note the "?:")
I my case I just set PHP version to 5.6 in my webhost options but PHP 5.2 is suposed to be supported in https://dotclear.org/about#pre-requisites .
Thanks for your software.
Change History
Note: See
TracTickets for help on using
tickets.
Sorry, but we have forgotten to update the english page of pre-requisites, as wa did for the french one → https://fr.dotclear.org/about#pre-requisites
The PHP 5.3 is required since release 2.10 of Dotclear, as announced it last august the 13rd.
We strongly recommended you to update your version of PHP, at least to 5.3 but it will be better with a 5.6 or even the better 7.0