Skip to content

Commit

Permalink
Merge pull request #5 from ashnazg/newRelease
Browse files Browse the repository at this point in the history
update for v1.10.2
  • Loading branch information
ashnazg authored Feb 28, 2017
2 parents fea2094 + 972aa6a commit 070f0b6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"type": "library",
"require": {
"pear/console_getopt": "~1.3",
"pear/console_getopt": "~1.4",
"pear/pear_exception": "~1.0"
},
"replace": {
Expand Down
5 changes: 3 additions & 2 deletions src/PEAR.php
Original file line number Diff line number Diff line change
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 @@ -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 070f0b6

Please sign in to comment.