Ticket #1359 (closed Bug: fixed)

Opened 21 months ago

Last modified 21 months ago

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

Changed 21 months ago by vipsoft

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

Changed 21 months ago by vipsoft

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

Changed 21 months ago by vipsoft

  • status changed from new to closed
  • resolution set to fixed

(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.