Re: PhD 0.4.1 and dependencies
| From: | Laurent Laville | Date: | Fri, 21 Nov 2008 13:25:39 +0000 |
| Subject: | Re: PhD 0.4.1 and dependencies | ||
| References: | 1 2 3 4 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-11298@lists.php.net to get a copy of this message | ||
Hello Christian,
Hello all,Laurent, please try this patch: http://tmp.cweiske.de/phd-config-getopt.diff ok implemented, but withFlahh.. I didn't think of that. The error message says "try 'C:\wamp\bin\php\php5.2.6\build.php /path/to/your/docbook.xml'".. but that builds the *phpdoc* themes, not the peardoc. So, you are right, you cannot use PhD on Windows for peardoc, only phpdoc, at the moment.REM $Id: phd.bat,v 1.1.4.1 2008/10/07 07:04:49 kalle Exp $ I'm sorry, you are running an operating system that does not support getopt() Please either upgrade to PHP5.3 or tryThat's a problem I'm currently investigating. Currently, on windows you really need php53 since windows does not have its own getopt() implementation. I'll talk to the phd guys to get a php52 solution out as fast as possible.
and get that getopt.php from cvs: http://cvs.php.net/viewvc.cgi/pear/PHP_Compat/Compat/Function/getopt.php?view=co There is a bug is this version: it raised a NOTICE error on line 164
if (!empty($value) || $type == PHP_COMPAT_NO_VALUE) {
Expected rather to get PHP_COMPAT_GETOPT_NO_VALUE I suppose
That should work, at least theoretically :) Not in real :Here are the log I got when running phd -f xhtml -t pearchunkedhtml -o build/en -d giant.xml [21-Nov-2008 14:21:25] PHP Strict standards: date(): It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead in C:\wamp\bin\php\php5.2.6\PEAR\phd\config.php on line 76 [21-Nov-2008 14:21:25] PHP Stack trace: [21-Nov-2008 14:21:25] PHP 1. {main}() C:\wamp\bin\php\php5.2.6\build.php:0 [21-Nov-2008 14:21:25] PHP 2. include() C:\wamp\bin\php\php5.2.6\build.php:15 [21-Nov-2008 14:21:25] PHP 3. getopt($options = 'f:t:i:d:o:p:s:vl::c::Vh', $longopts = array (0 => 'format:', 1 => 'theme:', 2 => 'index:', 3 => 'docbook:', 4 => 'output:', 5 => 'partial:', 6 => 'skip:', 7 => 'verbose:', 8 => 'list::', 9 => 'color::', 10 => 'version', 11 => 'help')) C:\wamp\bin\php\php5.2.6\PEAR\phd\config.php:216 [21-Nov-2008 14:21:25] PHP 4. php_compat_getopt($options = 'f:t:i:d:o:p:s:vl::c::Vh', $longopts = array (0 => 'format:', 1 => 'theme:', 2 => 'index:', 3 => 'docbook:', 4 => 'output:', 5 => 'partial:', 6 => 'skip:', 7 => 'verbose:', 8 => 'list::', 9 => 'color::', 10 => 'version', 11 => 'help')) C:\wamp\bin\php\php5.2.6\PEAR\PHP\Compat\Function\getopt.php:118 [21-Nov-2008 14:21:25] PHP 5. errh($errno = 8, $msg = 'Undefined index: f', $file = 'C:\\wamp\\bin\\php\\php5.2.6\\PEAR\\PHP\\Compat\\Function\\getopt.php', $line = 56, $ctx = array ('options' => 'f:t:i:d:o:p:s:vl::c::Vh', 'longopts' => array (0 => 'format:', 1 => 'theme:', 2 => 'index:', 3 => 'docbook:', 4 => 'output:', 5 => 'partial:', 6 => 'skip:', 7 => 'verbose:', 8 => 'list::', 9 => 'color::', 10 => 'version', 11 => 'help'), 'argv' => array (0 => 'C:\\wamp\\bin\\php\\php5.2.6\\build.php', 1 => '-f', 2 => 'xhtml', 3 => '-t', 4 => 'pearchunkedhtml', 5 => '-o', 6 => 'build/en', 7 => '-d', 8 => 'giant.xml'), 'argc' => 9, 'output' => array (), 'opt' => 'f', 'i' => 2, 'matches' => array (0 => 'f:', 1 => ':'), 'value' => FALSE, 'type' => 1)) C:\wamp\bin\php\php5.2.6\PEAR\phd\config.php:0 [21-Nov-2008 14:21:25] PHP 6. date('H:i:s') C:\wamp\bin\php\php5.2.6\PEAR\phd\config.php:76