Re: Re: Fwd: failure notice
| From: | Benoit des Ligneris | Date: | Fri, 14 Mar 2003 02:23:34 +0000 |
| Subject: | Re: Re: Fwd: failure notice | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4226@lists.php.net to get a copy of this message | ||
Hello,
The PHP version required for phpdocumentor is wrong :
WARNING in Main.php on line 33: Unknown tag "@module" used
<br>
<b>Fatal error</b>: Call to undefined function: is_a() in
<b>/usr/share/pear/PhpDocumentor/phpDocumentor/ParserData.inc</b> on
line <b>526</b><br>
- From php.net :
is_a (PHP 4 >= 4.2.0)
web01 mydynaweb $ php -v
4.1.2
It means that phpdocu will not work with PHP < 4.2.0 unless this code
(cut&paste from the contributions of the php manual !) :
if (!function_exists('is_a')) {
function is_a($classname, $classquery) {
$father = get_parent_class($classname);
if (strtolower($father) == strtolower($classquery)) {
return true;
}
elseif (!empty($father)) {
return is_a($father, $classquery);
}
else {
return false;
}
}
}
With this code, all works well ;-)
Ben
--
Benoit des Ligneris Etudiant au Doctorat -- Ph. D. Student
Web : http://benoit.des.ligneris.net/
Mydynaweb Developpe(u)r: http://mydynaweb.net/
Centre de Calcul Scientifique http://ccs.USherbrooke.ca/
OSCAR Symposium-May 11-14 http://oscar2003.ccs.USherbrooke.ca/