cvs: pear /HTTP_Upload Upload.php
| From: | Tomas V.V.Cox | Date: | Thu, 23 May 2002 08:24:14 +0000 |
| Subject: | cvs: pear /HTTP_Upload Upload.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-4044@lists.php.net to get a copy of this message | ||
cox Thu May 23 04:24:14 2002 EDT
Modified files:
/pear/HTTP_Upload Upload.php
Log:
Return also the error code in the PEAR_Error
Index: pear/HTTP_Upload/Upload.php
diff -u pear/HTTP_Upload/Upload.php:1.20 pear/HTTP_Upload/Upload.php:1.21
--- pear/HTTP_Upload/Upload.php:1.20 Fri Jan 25 10:52:09 2002
+++ pear/HTTP_Upload/Upload.php Thu May 23 04:24:14 2002
@@ -7,7 +7,7 @@
//
// **********************************************
//
-// $Id: Upload.php,v 1.20 2002/01/25 15:52:09 cox Exp $
+// $Id: Upload.php,v 1.21 2002/05/23 08:24:14 cox Exp $
/*
* Pear File Uploader class. Easy and secure managment of files
@@ -27,7 +27,7 @@
*
* -- Note for users of PHP > 4.1 --
*
-* Due the fact that PHP now doen't register the HTTP_POST_FILES if no
+* Due the fact that PHP now doesn't register the HTTP_POST_FILES if no
* uploads are done, the class is not able to give verbose information
* about what happens. To check that you have to use the new isMissing()
* method avaible from the $upload object too. For ex:
@@ -181,7 +181,7 @@
*/
function raiseError($e_code)
{
- return PEAR::raiseError($this->errorCode($e_code));
+ return PEAR::raiseError($this->errorCode($e_code), $e_code);
}
}