Dotclear

Ticket #2213 (closed defect: wontfix)

Opened 9 years ago

Last modified 8 years ago

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

comment:1 Changed 9 years ago by franck

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

comment:2 Changed 9 years ago by franck

  • Status changed from new to closed
  • Version 2.10.3 deleted
  • Resolution set to wontfix
  • Milestone changed from A definir to Sites DC/DA

comment:3 Changed 8 years ago by franck

  • Milestone Sites DC/DA deleted
Note: See TracTickets for help on using tickets.

Sites map