Changeset 1369 for trunk/index.php

Show
Ignore:
Timestamp:
12/02/2007 08:42:19 AM (12 months ago)
Author:
Shadowhand
Message:

Changes to core:

  • Made Kohana::exception_handler respect the error_reporting level, thanks Maxximus!
  • Changed index.php to have display_errors always on, and include a message about turning it off
  • Added a display_errors option to config/config.php to enable logging of errors even when they aren't displayed
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r1333 r1369  
    1212 
    1313/** 
    14  * Set the error reporting level. By default, Kohana will ignore E_NOTICE 
    15  * messages. Unless you have a special need, E_ALL is a good level for 
    16  * error reporting. 
    17  */ 
    18 error_reporting(E_ALL); 
    19  
    20 /** 
    21  * Enable or disable error display. During development, it is very helpful 
    22  * to display errors. However, errors can give away information about your 
    23  * application. For greater security, it is recommended that you disable 
    24  * the displaying of errors in production. 
    25  */ 
    26 ini_set('display_errors', TRUE); 
    27  
    28 /** 
    2914 * Kohana website application directory. This directory should contain your 
    3015 * application configuration, controllers, models, views, and other resources. 
     16 * 
     17 * This path can be absolute or relative to this file. 
    3118 */ 
    3219$kohana_application = 'application'; 
     
    3522 * Kohana package files. This directory should contain the core/ directory, and 
    3623 * the resources you included in your download of Kohana. 
     24 * 
     25 * This path can be absolute or relative to this file. 
    3726 */ 
    3827$kohana_system = 'system'; 
     28 
     29/** 
     30 * Set the error reporting level. Unless you have a special need, E_ALL is a 
     31 * good level for error reporting. 
     32 */ 
     33error_reporting(E_ALL & ~E_STRICT); 
     34 
     35/** 
     36 * Turning off display_errors will effectively disable Kohana error display 
     37 * and logging. You can turn off Kohana errors in application/config/config.php 
     38 */ 
     39ini_set('display_errors', TRUE); 
    3940 
    4041/** 
     
    4647 
    4748// 
    48 // DO NOT EDIT BELOW THIS LINE, UNLESS YOU FULLY UNDERSTAND WHAT YOU ARE CHANGING. 
     49// DO NOT EDIT BELOW THIS LINE, UNLESS YOU FULLY UNDERSTAND THE IMPLICATIONS. 
    4950// ---------------------------------------------------------------------------- 
    5051// $Id$