Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1813 closed Bug (fixed)

Installation: catch-22: Spl is required, but is used before systemCheck

Reported by: vipsoft Owned by:
Priority: normal Milestone: Piwik 1.1
Component: Core Keywords:
Cc: Sensitive: no

Description

HTML_QuickForm2 makes use of Spl's Countable and Iterator classes.

Change History (9)

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

Hmm. This must be triggered somewhere else because the SystemCheck happens earlier, and doesn't use HTML_QuickForm2.

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

  • Summary changed from Installation: catch-22: Spl is required, but is used by HTML_QuickForm2 to Installation: catch-22: Spl is required, but is used before systemCheck

comment:3 Changed 3 years ago by matt (mattab)

I'm not sure how to replicate (ie. how do you install without SPL)?

is there a fatal error in this case?

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

I'll fix this. I just have to build an earlier version of php where I can disable SPL.

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

Ever since Piwik 0.1, Zend_Registry subclasses SPL's ArrayObject. If SPL is disabled, Piwik silently fails in FrontController init.

comment:6 Changed 3 years ago by matt (mattab)

probably the only place to add the test is in /core/testMinimumPhpVersion.php

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

  • Milestone changed from 1.2 - Piwik 1.2 to 1.1 - Piwik 1.1

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

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

(In [3356]) fixes #1813 - added SPL test to testMinimumPhpVersion.php

Note: See TracTickets for help on using tickets.