Changeset 1631 for trunk/index.php

Show
Ignore:
Timestamp:
12/27/2007 06:11:38 PM (13 months ago)
Author:
Shadowhand
Message:

Added a version_compare() check. This can be disabled, and is really only provided as a sanity check for new installations.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1522 r1631  
    4646define('EXT', '.php'); 
    4747 
     48/** 
     49 * Test to make sure that Kohana is running on PHP 5.1.3 or newer. Once you are 
     50 * sure that your environment is compatible with Kohana, you can disable this. 
     51 */ 
     52version_compare(PHP_VERSION, '5.1.3', '<') and exit('Kohana requires PHP 5.1.3 or newer.'); 
     53 
    4854// 
    4955// DO NOT EDIT BELOW THIS LINE, UNLESS YOU FULLY UNDERSTAND THE IMPLICATIONS.