Doc #17987 [Opn->Bgs]: word 'static' is missing in method isError

From: Date: Sat, 23 Oct 2010 01:53:33 +0000
Subject: Doc #17987 [Opn->Bgs]: word 'static' is missing in method isError
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-4957@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17987&edit=1 ID: 17987 Updated by: daniel.oconnor@gmail.com Reported By: ivandavid77 at gmail dot com Summary: word 'static' is missing in method isError -Status: Open +Status: Bogus Type: Documentation Problem Package: PEAR Operating System: Mac OS X Server 10.4.11 Package Version: 1.9.1 PHP Version: 5.3.3 Roadmap Versions: New Comment: -Status: Open +Status: Bogus Hi David, The PEAR installer maintains backwards compatibility with PHP4; which does not support the static keyword. Pyrus, the next version of the pear installer, is available from http://pear2.php.net/ - it is a complete rewrite to support php 5.3+ Previous Comments: ------------------------------------------------------------------------ [2010-10-22 20:49:03] lord_id Description: ------------ Keyword static is missing in file PEAR.php line 239 to 263 and documentatios says that this method is static /** * Tell whether a value is a PEAR error. * * @param mixed $data the value to test * @param int $code if $data is an error object, return true * only if $code is a string and * $obj->getMessage() == $code or * $code is an integer and $obj->getCode() == $code * @access public * @return bool true if parameter is an error */ function isError($data, $code = null) { if (!is_a($data, 'PEAR_Error')) { return false; } if (is_null($code)) { return true; } elseif (is_string($code)) { return $data->getMessage() == $code; } return $data->getCode() == $code; } ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17987&edit=1

« previous php.pear.bugs (#4957) next »