Adds if( !defined( '*' ) ) to avoid E_NOTICE and redefining.

* Improves error output when using phpconsole (transaction.log) to stop output of E_DEPRECATED.

* The main objective is to better view phpconsole's output. E_NOTICE and E_WARNING are important, regardless.
This commit is contained in:
Jonathan Rosenbaum
2019-03-14 05:12:16 +00:00
parent 824435a35f
commit 3c3e4a0bf3
2 changed files with 54 additions and 46 deletions
+1
View File
@@ -7,6 +7,7 @@ require_once('Connections/database_functions.php');
/*
require_once(realpath($_SERVER["DOCUMENT_ROOT"]) . '/php-console/src/PhpConsole/__autoload.php');
$handler = PhpConsole\Handler::getInstance();
$handler->setErrorsHandlerLevel(E_ALL &~ E_DEPRECATED);
$handler->start();
*/