From 03969b042615fc4027dec7ac8c6224e3a676048c Mon Sep 17 00:00:00 2001 From: henoheno Date: Mon, 15 May 2006 00:05:19 +0900 Subject: [PATCH] Added error_reporting() --- encls.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/encls.php b/encls.php index dad3707..ebb12ae 100755 --- a/encls.php +++ b/encls.php @@ -1,16 +1,23 @@ #!/usr/local/bin/php 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; -- 2.11.0