Revision: 8506
http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8506&view=rev
Author: vargenau
Date: 2012-11-21 10:15:22 +0000 (Wed, 21 Nov 2012)
Log Message:
-----------
Temporary hack to have errors displayed on dev machines.
Modified Paths:
--------------
trunk/lib/ErrorManager.php
Modified: trunk/lib/ErrorManager.php
===================================================================
--- trunk/lib/ErrorManager.php 2012-11-20 20:51:46 UTC (rev 8505)
+++ trunk/lib/ErrorManager.php 2012-11-21 10:15:22 UTC (rev 8506)
@@ -385,6 +385,11 @@
*/
function ErrorManager_errorHandler($errno, $errstr, $errfile, $errline)
{
+ // TODO: Temporary hack to have errors displayed on dev machines.
+ if (defined('DEBUG') and DEBUG and $errno < 2048) {
+ print "<br/>PhpWiki Warning: ($errno, $errstr, $errfile, $errline)";
+ }
+
if (!isset($GLOBALS['ErrorManager'])) {
$GLOBALS['ErrorManager'] = new ErrorManager;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|