Restored ProcessMaker ErrorHandler. Fixed Soap class.
This commit is contained in:
David Callizaya
2017-08-31 15:26:44 -04:00
parent 6bd23225c6
commit 350d6874ce
8 changed files with 9 additions and 6 deletions

View File

@@ -70,6 +70,7 @@ return array(
'replacementLogo' => ReplacementLogo::class, 'replacementLogo' => ReplacementLogo::class,
'Report' => Report::class, 'Report' => Report::class,
'ReportTables' => ReportTables::class, 'ReportTables' => ReportTables::class,
'request' => Illuminate\Http\Request::class,
'serverConf' => ServerConf::class, 'serverConf' => ServerConf::class,
'Sessions' => Sessions::class, 'Sessions' => Sessions::class,
'spoolRun' => SpoolRun::class, 'spoolRun' => SpoolRun::class,

View File

@@ -486,6 +486,7 @@ class WebApplication
// Change storage path // Change storage path
app()->useStoragePath(realpath(PATH_DATA)); app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap(); app()->make(Kernel::class)->bootstrap();
restore_error_handler();
error_reporting(error_reporting() & ~E_STRICT & ~E_DEPRECATED); error_reporting(error_reporting() & ~E_STRICT & ~E_DEPRECATED);
Bootstrap::setLanguage(); Bootstrap::setLanguage();

View File

@@ -92,6 +92,7 @@ try {
app()->useStoragePath(realpath(PATH_DATA)); app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap(); app()->make(Kernel::class)->bootstrap();
restore_error_handler();
//Do not change any of these settings directly, use env.ini instead //Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $arraySystemConfiguration['debug']); ini_set('display_errors', $arraySystemConfiguration['debug']);
ini_set('error_reporting', $e_all); ini_set('error_reporting', $e_all);

View File

@@ -82,6 +82,7 @@ try {
app()->useStoragePath(realpath(PATH_DATA)); app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap(); app()->make(Kernel::class)->bootstrap();
restore_error_handler();
//Do not change any of these settings directly, use env.ini instead //Do not change any of these settings directly, use env.ini instead
ini_set('display_errors', $arraySystemConfiguration['debug']); ini_set('display_errors', $arraySystemConfiguration['debug']);
ini_set('error_reporting', $e_all); ini_set('error_reporting', $e_all);

View File

@@ -3979,12 +3979,9 @@ function pmSqlEscape($vValue)
//End - Private functions //End - Private functions
/* * *************************************************************************
* Error handler
* author: Julio Cesar Laura Avenda<64>o <juliocesar@colosa.com>
* date: 2009-10-01
* ************************************************************************* */
/** /**
* Error handler
*
* @param $errno * @param $errno
* @param $errstr * @param $errstr
* @param $errfile * @param $errfile

View File

@@ -650,7 +650,7 @@ function NewCase($params)
$oSession = new Sessions(); $oSession = new Sessions();
$session = $oSession->getSessionUser($params->sessionId); $session = $oSession->getSessionUser($params->sessionId);
$userId = $session['USR_UID']; $userId = $session['USR_UID'];
$variables = $params->variables; $variables = isset($params->variables) ? $params->variables : null;
$field = array(); $field = array();

View File

@@ -1,6 +1,7 @@
<?php <?php
namespace ProcessMaker\Util; namespace ProcessMaker\Util;
use G;
/** /**
* Constructs the name of the variable starting from a string representing the * Constructs the name of the variable starting from a string representing the

View File

@@ -553,6 +553,7 @@ if (! defined( 'PATH_DATA' ) || ! file_exists( PATH_DATA )) {
app()->useStoragePath(realpath(PATH_DATA)); app()->useStoragePath(realpath(PATH_DATA));
app()->make(Kernel::class)->bootstrap(); app()->make(Kernel::class)->bootstrap();
restore_error_handler();
//Overwrite with the Processmaker env.ini configuration used in production environments //Overwrite with the Processmaker env.ini configuration used in production environments
//@todo: move env.ini configuration to .env //@todo: move env.ini configuration to .env
ini_set( 'display_errors', $config['display_errors']); ini_set( 'display_errors', $config['display_errors']);