__DIR__ undefined on php < 5.3
Bug #1015960 reported by
Fournier Erwan
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chive |
Fix Released
|
Medium
|
David Roth |
Bug Description
Chive doesn't work anymore on php version < 5.3
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /xxx/chive/
Warning: CApplication:
Fatal error: CApplication:
Something like this does the job :
if (!defined(
define('__DIR__', dirname(__FILE__));
Related branches
description: | updated |
Changed in chive: | |
status: | New → Triaged |
milestone: | none → 1.2 |
Changed in chive: | |
assignee: | nobody → David Roth (davrot) |
importance: | Undecided → Medium |
status: | Triaged → Fix Committed |
Changed in chive: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Same problem here. PHP 5.2.17