Skip to content

Commit

Permalink
changes for v1.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnazg committed Aug 22, 2018
1 parent fea2094 commit d718e4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/PEAR.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function __construct($error_class = null)
$destructor = "_$classname";
if (method_exists($this, $destructor)) {
global $_PEAR_destructor_object_list;
$_PEAR_destructor_object_list[] = &$this;
$_PEAR_destructor_object_list[] = $this;
if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
register_shutdown_function("_PEAR_call_destructors");
$GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
Expand Down Expand Up @@ -450,7 +450,7 @@ function _checkDelExpect($error_code)
}

/**
* This method deletes all occurences of the specified element from
* This method deletes all occurrences of the specified element from
* the expected error codes stack.
*
* @param mixed $error_code error code that should be deleted
Expand Down Expand Up @@ -598,11 +598,11 @@ protected static function _raiseError($object,
protected static function _throwError($object, $message = null, $code = null, $userinfo = null)
{
if ($object !== null) {
$a = &$object->raiseError($message, $code, null, null, $userinfo);
$a = $object->raiseError($message, $code, null, null, $userinfo);
return $a;
}

$a = &PEAR::raiseError($message, $code, null, null, $userinfo);
$a = PEAR::raiseError($message, $code, null, null, $userinfo);
return $a;
}

Expand Down Expand Up @@ -914,7 +914,8 @@ function __construct($message = 'unknown error', $code = null,
} else {
$format = $options;
}
die(sprintf($format, $msg));
printf($format, $msg);
exit($code);
}

if ($this->mode & PEAR_ERROR_CALLBACK && is_callable($this->callback)) {
Expand Down
4 changes: 2 additions & 2 deletions src/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$GLOBALS['_System_temp_files'] = array();

/**
* System offers cross plattform compatible system functions
* System offers cross platform compatible system functions
*
* Static functions for different operations. Should work under
* Unix and Windows. The names and usage has been taken from its respectively
Expand Down Expand Up @@ -547,7 +547,7 @@ public static function which($program, $fallback = false)
* System::find("$dir -name *.php -name *.htm*");
* System::find("$dir -maxdepth 1");
*
* Params implmented:
* Params implemented:
* $dir -> Start the search at this directory
* -type d -> return only directories
* -type f -> return only files
Expand Down

0 comments on commit d718e4d

Please sign in to comment.