Fixed error_handler trace generation on higher debug levels

This commit is contained in:
Shoghi Cervantes
2014-10-15 17:58:03 +02:00
parent ed942100ec
commit 1adf53a81e
2 changed files with 3 additions and 3 deletions

View File

@ -327,9 +327,9 @@ namespace pocketmine {
return rtrim(str_replace(["\\", ".php", "phar://", rtrim(str_replace(["\\", "phar://"], ["/", ""], \pocketmine\PATH), "/"), rtrim(str_replace(["\\", "phar://"], ["/", ""], \pocketmine\PLUGIN_PATH), "/")], ["/", "", "", "", ""], $path), "/");
}
function error_handler($errno, $errstr, $errfile, $errline, $trace = null){
function error_handler($errno, $errstr, $errfile, $errline, $context, $trace = null){
global $lastError;
if(error_reporting() === 0){ //@ error-control
if(error_reporting() === 0){ //@ error-con..trol
return false;
}
$errorConversion = [