cvs: php4 /pear/scripts pear.in

From: Date: Sun, 07 Apr 2002 16:48:25 +0000
Subject: cvs: php4 /pear/scripts pear.in
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3107@lists.php.net to get a copy of this message
ssb Sun Apr 7 12:48:25 2002 EDT Modified files: /php4/pear/scripts pear.in Log: * use the UI's displayFatalError method Index: php4/pear/scripts/pear.in diff -u php4/pear/scripts/pear.in:1.37 php4/pear/scripts/pear.in:1.38 --- php4/pear/scripts/pear.in:1.37 Tue Apr 2 04:10:23 2002 +++ php4/pear/scripts/pear.in Sun Apr 7 12:48:24 2002 @@ -33,7 +33,7 @@ PEAR_Command::setFrontendType('CLI'); $all_commands = PEAR_Command::getCommands(); $cmd_options = PEAR_Command::getOptions(); - +$ui = &PEAR_Command::getFrontendObject(); $progname = basename(__FILE__); // XXX change Getopt to use raiseError() ? @@ -43,7 +43,7 @@ usage($options); } -PEAR::setErrorHandling(PEAR_ERROR_DIE, "$progname: %s\n"); +PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ui, "displayFatalError")); $opts = $options[0]; $pear_user_config = '';

« previous php.pear.cvs (#3107) next »