cvs: pear-core /PEAR Common.php
| From: | Greg Beaver | Date: | Thu, 28 Oct 2004 22:40:27 +0000 |
| Subject: | cvs: pear-core /PEAR Common.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1182@lists.php.net to get a copy of this message | ||
cellog Thu Oct 28 18:40:27 2004 EDT
Modified files:
/pear-core/PEAR Common.php
Log:
make error messages consistent regardless of parsing method
http://cvs.php.net/diff.php/pear-core/PEAR/Common.php?r1=1.133&r2=1.134&ty=u
Index: pear-core/PEAR/Common.php
diff -u pear-core/PEAR/Common.php:1.133 pear-core/PEAR/Common.php:1.134
--- pear-core/PEAR/Common.php:1.133 Sat Sep 25 15:57:10 2004
+++ pear-core/PEAR/Common.php Thu Oct 28 18:40:27 2004
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.133 2004/09/25 19:57:10 cellog Exp $
+// $Id: Common.php,v 1.134 2004/10/28 22:40:27 cellog Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -1419,7 +1419,7 @@
$interface = true;
case T_CLASS:
if (($current_class_level != -1) || ($current_function_level != -1)) {
- PEAR::raiseError("Parser error: Invalid PHP file $file",
+ PEAR::raiseError("Parser error: invalid PHP found in file
\"$file\"",
PEAR_COMMON_ERROR_INVALIDPHP);
return false;
}
@@ -1483,7 +1483,7 @@
continue 2;
case T_DOUBLE_COLON:
if (!($tokens[$i - 1][0] == T_WHITESPACE || $tokens[$i - 1][0] == T_STRING)) {
- PEAR::raiseError("Parser error: Invalid PHP file $file",
+ PEAR::raiseError("Parser error: invalid PHP found in file
\"$file\"",
PEAR_COMMON_ERROR_INVALIDPHP);
return false;
}