BUG 9033 "Depracated en output document en Windows ZendServer" SOLVED

- sysGeneric problem when "E_STRICT" is defined,..
- Fixed to right handling E_DEPRECATED & E_STRICT
This commit is contained in:
Erik Amaru Ortiz
2012-05-02 11:11:41 -04:00
parent 4c9f6bdabd
commit c96cbae164

View File

@@ -25,7 +25,7 @@
/**
* sysGeneric - ProcessMaker Bootstrap
* this file is used initialize main variables and redirect to each and all pages
* this file is used initialize main variables, redirect and dispatch all requests
*/
$startingTime = microtime(true);
@@ -55,9 +55,9 @@
require_once $pathhome . 'engine' . PATH_SEP . 'classes' . PATH_SEP . 'class.system.php';
$config = System::getSystemConfiguration($pathhome . 'engine' . PATH_SEP . 'config' . PATH_SEP . 'env.ini');
$e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
$e_all = defined('E_STRICT') ? E_ALL & ~E_STRICT : $e_all;
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
$e_all = defined('E_DEPRECATED') ? E_ALL & ~E_DEPRECATED : E_ALL;
$e_all = defined('E_STRICT') ? $e_all & ~E_STRICT : $e_all;
$e_all = $config['debug'] ? $e_all : $e_all & ~E_NOTICE;
// Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $config['debug']);