From b74f07fbd61b30ad79eed4c9442535e64314a7df Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Tue, 19 Apr 2011 11:04:56 +1200 Subject: [PATCH] ENHANCEMENT: added checks for reflection class and standard library methods. PATCH via vice (http://open.silverstripe.org/ticket/6603) --- install.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.php b/install.php index 09713b2..b65e253 100644 --- a/install.php +++ b/install.php @@ -392,6 +392,12 @@ class InstallRequirements { // Check for hash support $this->requireFunction('hash', array('PHP Configuration', 'hash support', 'hash support not included in PHP.')); + // Check for Reflection support + $this->requireClass('ReflectionClass', array('PHP Configuration', 'Reflection support', 'Reflection support not included in PHP.')); + + // Check for Standard PHP Library (SPL) support + $this->requireFunction('spl_classes', array('PHP Configuration', 'SPL support', 'Standard PHP Library (SPL) not included in PHP.')); + if(version_compare(PHP_VERSION, '5.3.0', '>=')) { $this->requireDateTimezone(array('PHP Configuration', 'date.timezone set and valid', 'date.timezone option in php.ini must be set in PHP 5.3.0+', ini_get('date.timezone'))); }