Opened 4 years ago

Closed 4 years ago

#1359 closed Bug (fixed)

PHP 5.1.6 errors if EXPERIMENTAL_DATE_SUPPORT enabled

Reported by: vipsoft Owned by: vipsoft
Priority: major Milestone: Piwik 0.6.2
Component: Core Keywords:
Cc: Sensitive: no

Description

Installer:

  • detect whether or not DateTime classes available; otherwise
    Fatal error: Class 'DateTimeZone' not found in /home/apang/work/piwik/dev/trunk/core/Date.php on line 207
    
  • see http://ca2.php.net/manual/en/datetime.installation.php re: building PHP with: CFLAGS=-DEXPERIMENTAL_DATE_SUPPORT=1

Note: I have some more testing to do and may expand on this ticket...

Change History (3)

comment:1 Changed 4 years ago by vipsoft (robocoder)

Hmm... the DateTime and DateTimeZone classes aren't in the 5.1.6 sources (but the timezone functions are). I'm guessing some distros either backported this feature or used a post-5.1.6 SVN shapshot.

Options:

  • raise minimum php requirement to 5.2, or
  • modify core/Date.php to not depend on DateTime & DateTimeZone

comment:2 Changed 4 years ago by vipsoft (robocoder)

  • Summary changed from PHP 5.1.6 errors to PHP 5.1.6 errors if EXPERIMENTAL_DATE_SUPPORT enabled

comment:3 Changed 4 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [2186]) fixes #1359 - use procedural interface instead of DateTime & DateTimeZone classes to support php 5.1.6 with experimental date support enabled

Note: See TracTickets for help on using tickets.