FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=10145&edit=1

ID: 10145
Updated by: mrook@php.net
Reported By: lu dot corbo at gmail dot com
Summary: Patch to return a Pear Error Object on failure
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Archive_Tar
Package Version: 1.3.2
PHP Version: Irrelevant
-Assigned To:
+Assigned To: mrook
-Roadmap Versions:
+Roadmap Versions: 1.3.8
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: mrook
-Roadmap Versions:
+Roadmap Versions: 1.3.8
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.




Previous Comments:
------------------------------------------------------------------------

[2007-02-21 10:22:41] lucor

Description:
------------
This patch allows to return a Pear Error Object on failure

Test script:
---------------
--- Tar.php.orig 2007-02-21 15:23:10.000000000 +0100
+++ Tar.php 2007-02-21 15:22:23.000000000 +0100
@@ -62,6 +62,11 @@
* @var string Local Tar name of a remote Tar (http:// or ftp://)
*/
var $_temp_tarname='';
+
+ /**
+ * @var object PEAR_Error object
+ */
+ var $error_object=NULL;

// {{{ constructor
/**
@@ -569,11 +574,14 @@
// {{{ _error()
function _error($p_message)
{
- // ----- To be completed
- $this->raiseError($p_message);
+ if (isset($this) && is_a($this, 'PEAR')) {
+ $this->error_object = &$this->raiseError($p_message, null,
null, null, null);
+ } else {
+ $this->error_object = &PEAR::raiseError($p_message, null,
null, null, null);
+ }
}
// }}}
-
+
// {{{ _warning()
function _warning($p_message)
{

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 12, '10 at 6:57p
activeAug 12, '10 at 6:57p
posts1
users1
websitepear.php.net

1 user in discussion

Mrook: 1 post

People

Translate

site design / logo © 2022 Grokbase