cvs: php4 /pear/scripts pear.in
| From: | Thomas V.V.Cox | Date: | Tue, 06 Nov 2001 01:05:30 +0000 |
| Subject: | cvs: php4 /pear/scripts pear.in | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1267@lists.php.net to get a copy of this message | ||
cox Mon Nov 5 20:05:30 2001 EDT
Modified files:
/php4/pear/scripts pear.in
Log:
E_ALL fixes
Index: php4/pear/scripts/pear.in
diff -u php4/pear/scripts/pear.in:1.14 php4/pear/scripts/pear.in:1.15
--- php4/pear/scripts/pear.in:1.14 Wed Oct 31 00:39:11 2001
+++ php4/pear/scripts/pear.in Mon Nov 5 20:05:28 2001
@@ -25,7 +25,7 @@
require_once 'PEAR/Registry.php';
require_once 'Console/Getopt.php';
-error_reporting(E_ALL ^ E_NOTICE);
+error_reporting(E_ALL);
PEAR::setErrorHandling(PEAR_ERROR_PRINT, "pear: %s\n");
@@ -124,7 +124,7 @@
$ext_dir = $config->get("ext_dir");
$doc_dir = $config->get("doc_dir");
-$command = $options[1][1];
+$command = (isset($options[1][1])) ? $options[1][1] : null;
$rest = array_slice($options[1], 2);
$command_options = array(
@@ -167,7 +167,7 @@
case 'package': {
include_once 'PEAR/Packager.php';
- $pkginfofile = $options[1][2];
+ $pkginfofile = isset($options[1][2]) ? $options[1][2] : null;
$packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir);
$packager->setErrorHandling(PEAR_ERROR_DIE, "pear page: %s\n");
$packager->debug = $verbose;
@@ -274,9 +274,9 @@
function usage($error = null)
{
$stderr = fopen('php://stderr', 'w');
- if (PEAR::isError($obj)) {
+ if (PEAR::isError($error)) {
fputs($stderr, $error->getMessage());
- } elseif ($obj !== null) {
+ } elseif ($error !== null) {
fputs($stderr, $error);
}
fputs($stderr,