Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Request #10145 - save error_object

git-svn-id: https://svn.php.net/repository/pear/packages/Archive_Tar/trunk@302160 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit dbbcf6359ca45c36a734349f0f1dea1a74cc0d7a 1 parent 3bc971d
@mrook mrook authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 Archive/Tar.php
View
11 Archive/Tar.php
@@ -91,6 +91,11 @@ class Archive_Tar extends PEAR
*/
var $_ignore_regexp='';
+ /**
+ * @var object PEAR_Error object
+ */
+ var $error_object=NULL;
+
// {{{ constructor
/**
* Archive_Tar Class constructor. This flavour of the constructor only
@@ -627,16 +632,14 @@ function setIgnoreList($list)
// {{{ _error()
function _error($p_message)
{
- // ----- To be completed
- $this->raiseError($p_message);
+ $this->error_object = &$this->raiseError($p_message);
}
// }}}
// {{{ _warning()
function _warning($p_message)
{
- // ----- To be completed
- $this->raiseError($p_message);
+ $this->error_object = &$this->raiseError($p_message);
}
// }}}
Please sign in to comment.
Something went wrong with that request. Please try again.