cvs: php-src(PHP_4_3) /pear PEAR.php
| From: | Greg Beaver | Date: | Fri, 27 Feb 2004 02:27:12 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /pear PEAR.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-131@lists.php.net to get a copy of this message | ||
cellog Thu Feb 26 21:27:12 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/pear PEAR.php
Log:
MFH
http://cvs.php.net/diff.php/php-src/pear/PEAR.php?r1=1.50.2.16&r2=1.50.2.17&ty=u
Index: php-src/pear/PEAR.php
diff -u php-src/pear/PEAR.php:1.50.2.16 php-src/pear/PEAR.php:1.50.2.17
--- php-src/pear/PEAR.php:1.50.2.16 Sun Jan 25 20:26:43 2004
+++ php-src/pear/PEAR.php Thu Feb 26 21:27:12 2004
@@ -18,7 +18,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: PEAR.php,v 1.50.2.16 2004/01/26 01:26:43 pajoye Exp $
+// $Id: PEAR.php,v 1.50.2.17 2004/02/27 02:27:12 cellog Exp $
//
define('PEAR_ERROR_RETURN', 1);
@@ -40,6 +40,15 @@
define('PEAR_OS', 'Unix'); // blatant assumption
}
+// instant backwards compatibility
+if (!defined('PATH_SEPARATOR')) {
+ if (OS_WINDOWS) {
+ define('PATH_SEPARATOR', ';');
+ } else {
+ define('PATH_SEPARATOR', ':');
+ }
+}
+
$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN;
$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE;
$GLOBALS['_PEAR_destructor_object_list'] = array();
@@ -184,7 +193,7 @@
/**
* If you have a class that's mostly/entirely static, and you need static
* properties, you can use this method to simulate them. Eg. in your method(s)
- * do this: $myVar = &PEAR::getStaticProperty('myVar');
+ * do this: $myVar = &PEAR::getStaticProperty('myclass', 'myVar');
* You MUST use a reference, or they will not persist!
*
* @access public