ENHANCEMENT #3780: Check for token_get_all() support in installer.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@90549 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sminnee 2009-10-31 00:57:27 +00:00
parent e0bf303de0
commit e09e1f2a4e

View File

@ -194,6 +194,10 @@ class InstallRequirements {
// Check for MySQL support
$this->requireFunction('mysql_connect', array("PHP Configuration", "MySQL support", "MySQL support not included in PHP."));
// Check for token_get_all
$this->requireFunction('token_get_all', array("PHP Configuration", "PHP Tokenizer", "PHP tokenizer support not included in PHP."));
// Check memory allocation
$this->requireMemory(32*1024*1024, 64*1024*1024, array("PHP Configuration", "Memory allocated (PHP config option 'memory_limit')", "SilverStripe needs a minimum of 32M allocated to PHP, but recommends 64M.", ini_get("memory_limit")));