revcheck_pear.php
| From: | Mehdi Achour | Date: | Mon, 23 Feb 2004 13:01:10 +0000 |
| Subject: | revcheck_pear.php | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2709@lists.php.net to get a copy of this message | ||
Hi folks !
Playing with this script, I had problems with detecting the peardoc path. I tried on two different computers (debian) and the same error is there.
didou@www:~/cvs/peardoc/scripts$ php revcheck_pear.php fr
The fr language code is not valid
Here's the snippet that checks for the language validity :
// Main directory of the PEARDOC documentation (depends on the
// sapi used). We do need the trailing slash!
if ("cli" === php_sapi_name()) {
if (isset($PHPDOCDIR) && is_dir($PHPDOCDIR))
$DOCDIR = $PHPDOCDIR."/";
else
$DOCDIR = "./";
} else
$DOCDIR = "../";Some questions : 1 - Where is $PHPDOCDIR defined ? should it be in $_ENV ?
or is it just a phpdoc -> peardoc port mistake ?2 - may I fix it ? :) didou