Changeset 2963 for trunk/vendor/PEAR.php
- Timestamp:
- 10/21/07 07:23:59 (15 months ago)
- Files:
-
- 1 modified
-
trunk/vendor/PEAR.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/vendor/PEAR.php
r1127 r2963 54 54 55 55 // instant backwards compatibility 56 if ( !defined('PATH_SEPARATOR')) {56 if ( ! defined('PATH_SEPARATOR')) { 57 57 if (OS_WINDOWS) { 58 58 define('PATH_SEPARATOR', ';'); … … 182 182 global $_PEAR_destructor_object_list; 183 183 $_PEAR_destructor_object_list[] = &$this; 184 if ( !isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {184 if ( ! isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 185 185 register_shutdown_function("_PEAR_call_destructors"); 186 186 $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; … … 231 231 { 232 232 static $properties; 233 if ( !isset($properties[$class])) {233 if ( ! isset($properties[$class])) { 234 234 $properties[$class] = array(); 235 235 } 236 if ( !array_key_exists($var, $properties[$class])) {236 if ( ! array_key_exists($var, $properties[$class])) { 237 237 $properties[$class][$var] = null; 238 238 } … … 256 256 // if we are called statically, there is a potential 257 257 // that no shutdown func is registered. Bug #6445 258 if ( !isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {258 if ( ! isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) { 259 259 register_shutdown_function("_PEAR_call_destructors"); 260 260 $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true; … … 469 469 } 470 470 return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME 471 } elseif ( !empty($error_code)) {471 } elseif ( ! empty($error_code)) { 472 472 // $error_code comes alone, trying to unset it 473 473 if ($this->_checkDelExpect($error_code)) { … … 741 741 function loadExtension($ext) 742 742 { 743 if ( !extension_loaded($ext)) {743 if ( ! extension_loaded($ext)) { 744 744 // if either returns true dl() will produce a FATAL error, stop that 745 745 if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) { … … 865 865 $this->mode = $mode; 866 866 $this->userinfo = $userinfo; 867 if ( !PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) {867 if ( ! PEAR::getStaticProperty('PEAR_Error', 'skiptrace')) { 868 868 $this->backtrace = debug_backtrace(); 869 869 if (isset($this->backtrace[0]) && isset($this->backtrace[0]['object'])) {