hi folks!!

i've have added a new function called config_error_reporting(), to set error
reporting level in coherence with config debug and config error_level.
This function will set php error reporting to:
- if debug mode is on: E_ALL | E_STRICT
- if off first of this value: given level, $config["error_level"] , E_ALL |
E_STRICT.

EXAMPLES
style.php
require_once("bootstrap.php");
config_error_reporting(0);
Explantion:  after bootstrap process , style.php set error reporting to 0
(none) but if debug mode is ON

index.php:
require_once("bootstrap.php");
config_error_reporting();
Explantion:  after bootstrap process , style.php set error reporting to
config("error_level"), so each site can set this value, or E_ALL | E_STRICT


ERRORS OUT OF RANGE
Before, and during bootstrap this function doesn't work, basically, because
it does not exist, or $config is not available...so, error_reporting depends
of existing 'resource'l
php.ini, apache configuration.That is the reason, why in some files
error_reporting is called and after config_error_reporting. Example:
aikiflow.php

error_reporting(0);
..

require_once("../../../bootstrap.php");
config_error_reporting(0);

(PD: what does aikiflow.php is other question... )

Roger
_______________________________________________
Mailing list: https://launchpad.net/~aikiframework-devel
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~aikiframework-devel
More help   : https://help.launchpad.net/ListHelp

Reply via email to