cvs: phd / package.xml /formats manpage.php /themes/php phpfunctions.php
| From: | Rudy Nappée | Date: | Fri, 25 Jul 2008 14:04:50 +0000 |
| Subject: | cvs: phd / package.xml /formats manpage.php /themes/php phpfunctions.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-1937@lists.php.net to get a copy of this message | ||
loudi Fri Jul 25 14:04:50 2008 UTC
Modified files:
/phd/themes/php phpfunctions.php
/phd package.xml
/phd/formats manpage.php
Log:
* corrected bugs #45626 & #45627 (bad directory name & gzip compression) for manpage
output
* updated package.xml with kdevelop & pdf outputs
http://cvs.php.net/viewvc.cgi/phd/themes/php/phpfunctions.php?r1=1.1&r2=1.2&diff_format=u
Index: phd/themes/php/phpfunctions.php
diff -u phd/themes/php/phpfunctions.php:1.1 phd/themes/php/phpfunctions.php:1.2
--- phd/themes/php/phpfunctions.php:1.1 Wed Jul 9 22:57:06 2008
+++ phd/themes/php/phpfunctions.php Fri Jul 25 14:04:50 2008
@@ -44,7 +44,7 @@
protected $outputdir = "";
protected $isFunctionRefSet = false;
- public function __construct(array $IDs, array $filenames, $format = "man", $chunked =
true) {
+ public function __construct(array $IDs, array $filenames, $format = "man3", $chunked
= true) {
parent::__construct($IDs);
$this->format = $format;
$this->outputdir = PhDConfig::output_dir() . $this->format . DIRECTORY_SEPARATOR;
@@ -61,20 +61,26 @@
$index = 0;
rewind($stream);
- $filename = $this->cchunk["funcname"][$index] . '.3';
+ $filename = $this->cchunk["funcname"][$index] . '.3.gz';
+ $gzfile = gzopen($this->outputdir . $filename, "w9");
- file_put_contents($this->outputdir . $filename, $this->header($index));
- file_put_contents($this->outputdir . $filename, $stream, FILE_APPEND);
+ gzwrite($gzfile, $this->header($index));
+ gzwrite($gzfile, stream_get_contents($stream));
+ gzclose($gzfile);
v("Wrote %s", $this->outputdir . $filename, VERBOSE_CHUNK_WRITING);
while(isset($this->cchunk["funcname"][++$index])) {
- $filename = $this->cchunk["funcname"][$index] . '.3';
+ $filename = $this->cchunk["funcname"][$index] . '.3.gz';
rewind($stream);
// Replace the default function name by the alternative one
$content =
preg_replace('/'.$this->cchunk["funcname"][0].'/',
$this->cchunk["funcname"][$index], stream_get_contents($stream), 1);
- file_put_contents($this->outputdir . $filename, $this->header($index));
- file_put_contents($this->outputdir . $filename, $content, FILE_APPEND);
+
+ $gzfile = gzopen($this->outputdir . $filename, "w9");
+
+ gzwrite($gzfile, $this->header($index));
+ gzwrite($gzfile, $content);
+ gzclose($gzfile);
v("Wrote %s", $this->outputdir . $filename, VERBOSE_CHUNK_WRITING);
}
}
http://cvs.php.net/viewvc.cgi/phd/package.xml?r1=1.84&r2=1.85&diff_format=u
Index: phd/package.xml
diff -u phd/package.xml:1.84 phd/package.xml:1.85
--- phd/package.xml:1.84 Thu Jul 24 19:39:02 2008
+++ phd/package.xml Fri Jul 25 14:04:50 2008
@@ -56,6 +56,7 @@
<dir baseinstalldir="phd" name="/">
<file baseinstalldir="phd" name="formats/xhtml.php"
role="php"/>
<file baseinstalldir="phd" name="formats/manpage.php"
role="php"/>
+ <file baseinstalldir="phd" name="formats/pdf.php"
role="php"/>
<file baseinstalldir="phd" name="include/PhDBuildOptions.class.php"
role="php"/>
<file baseinstalldir="phd" name="include/PhDErrors.php"
role="php"/>
<file baseinstalldir="phd" name="include/PhDFormat.class.php"
role="php"/>
@@ -82,6 +83,9 @@
<file baseinstalldir="phd" name="themes/php/phpdotnet.php"
role="php"/>
<file baseinstalldir="phd" name="themes/php/phpweb.php"
role="php"/>
<file baseinstalldir="phd" name="themes/php/phpfunctions.php"
role="php"/>
+ <file baseinstalldir="phd" name="themes/php/phpkdevelop.php"
role="php"/>
+ <file baseinstalldir="phd" name="themes/php/phppdf.php"
role="php"/>
+ <file baseinstalldir="phd" name="themes/php/phpbigpdf.php"
role="php"/>
<file baseinstalldir="phd" name="themes/pear/pearbightml.php"
role="php"/>
<file baseinstalldir="phd" name="themes/pear/pearchm.php"
role="php"/>
<file baseinstalldir="phd" name="themes/pear/pearchunkedhtml.php"
role="php"/>
http://cvs.php.net/viewvc.cgi/phd/formats/manpage.php?r1=1.1&r2=1.2&diff_format=u
Index: phd/formats/manpage.php
diff -u phd/formats/manpage.php:1.1 phd/formats/manpage.php:1.2
--- phd/formats/manpage.php:1.1 Wed Jul 9 22:57:06 2008
+++ phd/formats/manpage.php Fri Jul 25 14:04:50 2008
@@ -538,6 +538,6 @@
// Convert the function name to a Unix valid filename
public function toValidName($functionName) {
- return str_replace(array("::", "->"), array(".",
"."), $functionName);
+ return str_replace(array("::", "->", "()"),
array(".", ".", ""), $functionName);
}
}
\ No newline at end of file