developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 7 years ago

Closed 5 years ago

#1038 closed task (wontfix)

use the const keyword instead of define

Reported by: laurentj Owned by:
Priority: normal Milestone: Jelix 1.5.0
Component: jelix Version: trunk
Severity: normal Keywords:
Cc: Blocked By:
Blocking: #463 Documentation needed: no
Hosting Provider: Php version: 5.3

Description

in PHP 5.3, we can use the const keyword instead of define. We should replace our defines.

Change History (3)

comment:1 Changed 5 years ago by laurentj

  • Status changed from new to confirmed

comment:2 Changed 5 years ago by laurentj

  • Milestone changed from Jelix 2.0 to Jelix 1.5

comment:3 Changed 5 years ago by laurentj

  • Resolution set to wontfix
  • Status changed from confirmed to closed

In fact, most "define" contain calculated values, so we cannot turn them into true constant.

Note: See TracTickets for help on using tickets.