OSDN Git Service

Added error_reporting()
authorhenoheno <henoheno>
Sun, 14 May 2006 15:05:19 +0000 (00:05 +0900)
committerhenoheno <henoheno>
Sun, 14 May 2006 15:05:19 +0000 (00:05 +0900)
encls.php

index dad3707..ebb12ae 100755 (executable)
--- a/encls.php
+++ b/encls.php
@@ -1,16 +1,23 @@
 #!/usr/local/bin/php
 <?php
 // PukiWiki - Yet another WikiWikiWeb clone.
-// $Id: encls.php,v 1.1 2006/05/14 09:24:22 henoheno Exp $
+// $Id: encls.php,v 1.2 2006/05/14 15:05:19 henoheno Exp $
 // Copyright (C) 2006 PukiWiki Developers Team
 // License: GPL v2 or (at your option) any later version
 //
 // encoded-EUC-JP.txt -> EUC-JP -> UTF-8 -> encoded-UTF-8.txt
 
+// Error reporting
+error_reporting(0); // Nothing
+//error_reporting(E_ERROR | E_PARSE); // Avoid E_WARNING, E_NOTICE, etc
+//error_reporting(E_ALL); // Debug purpose
+
 // PHP-cli only
 if (php_sapi_name() != 'cli') die('Invalid SAPI');
 if (! isset($argv)) die('PHP too old (Not 4.3.0 of above)');
 
+//////////////////////////////////
+
 $base = basename(array_shift($argv));
 function usage(){
        global $base;