Skip to content
Snippets Groups Projects
Commit 6d53a956 authored by Prasad's avatar Prasad
Browse files

Fixed static function signatures in PEAR

parent c0f7a348
No related branches found
No related tags found
No related merge requests found
...@@ -234,7 +234,7 @@ class PEAR ...@@ -234,7 +234,7 @@ class PEAR
* @return mixed A reference to the variable. If not set it will be * @return mixed A reference to the variable. If not set it will be
* auto initialised to NULL. * auto initialised to NULL.
*/ */
function &getStaticProperty($class, $var) static function &getStaticProperty($class, $var)
{ {
static $properties; static $properties;
return $properties[$class][$var]; return $properties[$class][$var];
...@@ -252,7 +252,7 @@ class PEAR ...@@ -252,7 +252,7 @@ class PEAR
* @param mixed $args The arguments to pass to the function * @param mixed $args The arguments to pass to the function
* @return void * @return void
*/ */
function registerShutdownFunc($func, $args = array()) static function registerShutdownFunc($func, $args = array())
{ {
$GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args); $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
} }
...@@ -271,7 +271,7 @@ class PEAR ...@@ -271,7 +271,7 @@ class PEAR
* @access public * @access public
* @return bool true if parameter is an error * @return bool true if parameter is an error
*/ */
function isError($data, $code = null) static function isError($data, $code = null)
{ {
if (is_a($data, 'PEAR_Error')) { if (is_a($data, 'PEAR_Error')) {
if (is_null($code)) { if (is_null($code)) {
...@@ -327,7 +327,7 @@ class PEAR ...@@ -327,7 +327,7 @@ class PEAR
* @since PHP 4.0.5 * @since PHP 4.0.5
*/ */
function setErrorHandling($mode = null, $options = null) static function setErrorHandling($mode = null, $options = null)
{ {
if (isset($this) && is_a($this, 'PEAR')) { if (isset($this) && is_a($this, 'PEAR')) {
$setmode = $this->_default_error_mode; $setmode = $this->_default_error_mode;
...@@ -516,7 +516,7 @@ class PEAR ...@@ -516,7 +516,7 @@ class PEAR
* @see PEAR::setErrorHandling * @see PEAR::setErrorHandling
* @since PHP 4.0.5 * @since PHP 4.0.5
*/ */
function &raiseError($message = null, static function &raiseError($message = null,
$code = null, $code = null,
$mode = null, $mode = null,
$options = null, $options = null,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment