Show
Ignore:
Timestamp:
02/08/2008 07:19:05 PM (11 months ago)
Author:
Shadowhand
Message:

Upgrading trunk to be PHP 5.2+ compatible:

  • index.php check upgraded to 5.2
  • All checks for PHP < 5.2 in libraries and helpers removed
  • Removed unnecessary examples
  • Re-organized Bootstrap pre-initialization setup
  • Updated module path handling to define MODPATH in index.php
  • Updated module paths in config.php to use MODPATH for default modules
  • Removed Loader and core.preload configuration setting
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/core/Kohana.php

    r1899 r2003  
    5151                // Start the environment setup benchmark 
    5252                Benchmark::start(SYSTEM_BENCHMARK.'_environment_setup'); 
     53 
     54                // Define Kohana error constant 
     55                defined('E_KOHANA') or define('E_KOHANA', 42); 
     56 
     57                // Define 404 error constant 
     58                defined('E_PAGE_NOT_FOUND') or define('E_PAGE_NOT_FOUND', 43); 
     59 
     60                // Define database error constant 
     61                defined('E_DATABASE_ERROR') or define('E_DATABASE_ERROR', 44); 
    5362 
    5463                // Disable error reporting 
     
    11051114 
    11061115} // End Kohana 404 Exception 
    1107  
    1108 /** 
    1109  * Run Kohana setup to prepare the environment. 
    1110  */ 
    1111 Kohana::setup();