cvs: phd /themes/pear peartheme.php /themes/php phpdotnet.php

From: Date: Mon, 26 Jan 2009 21:46:05 +0000
Subject: cvs: phd /themes/pear peartheme.php /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3097@lists.php.net to get a copy of this message
cweiske Mon Jan 26 21:46:06 2009 UTC Modified files: /phd/themes/pear peartheme.php /phd/themes/php phpdotnet.php Log: Tell us where the qandaset errors come from http://cvs.php.net/viewvc.cgi/phd/themes/pear/peartheme.php?r1=1.24&r2=1.25&diff_format=u Index: phd/themes/pear/peartheme.php diff -u phd/themes/pear/peartheme.php:1.24 phd/themes/pear/peartheme.php:1.25 --- phd/themes/pear/peartheme.php:1.24 Mon Jan 26 21:32:31 2009 +++ phd/themes/pear/peartheme.php Mon Jan 26 21:45:58 2009 @@ -252,6 +252,11 @@ */ public $phd_pearapi_urlprefix = 'http://pear.php.net/package/'; + /** + * Name of the ID currently being processed + * + * @var string + */ protected $CURRENT_ID = ""; /* Current Chunk settings */ @@ -933,6 +938,7 @@ $doc->preserveWhitespace = false; $doc->loadXML(html_entity_decode(str_replace('&', '&amp;amp;', "<div>$xml</div>"), ENT_QUOTES, 'UTF-8')); if ($err = libxml_get_errors()) { + echo 'qandaset xml problem in ' . $this->CURRENT_ID . "\n"; print_r($err); libxml_clear_errors(); } http://cvs.php.net/viewvc.cgi/phd/themes/php/phpdotnet.php?r1=1.63&r2=1.64&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.63 phd/themes/php/phpdotnet.php:1.64 --- phd/themes/php/phpdotnet.php:1.63 Wed Dec 31 15:54:43 2008 +++ phd/themes/php/phpdotnet.php Mon Jan 26 21:46:04 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.63 2008/12/31 15:54:43 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.64 2009/01/26 21:46:04 cweiske Exp $ */ abstract class phpdotnet extends PhDTheme { protected $elementmap = array( @@ -143,6 +143,11 @@ protected $chunked = true; protected $lang = "en"; + /** + * Name of the ID currently being processed + * + * @var string + */ protected $CURRENT_ID = ""; /* Current Chunk settings */ @@ -305,7 +310,7 @@ } $href = '<a href="' .$href. '">'; } - + if ( $this->cchunk["fieldsynopsis"]["modifier"] == "const" || ( @@ -459,7 +464,7 @@ } } $content .= "</div>\n"; - + return $content; } public function format_exception_chunk($open, $name, $attrs, $props) { @@ -523,17 +528,17 @@ /* ignore it */ return ""; } - + public function format_classsynopsis_methodsynopsis_methodname_text($value, $tag) { $display_value = $this->format->format_classsynopsis_methodsynopsis_methodname_text($value, $tag); return $this->format_function_text($value, $tag, $display_value); } - + public function format_function_text($value, $tag, $display_value = null) { if ($display_value === null) { $display_value = $value; } - + $ref = strtolower(str_replace(array("_", "::", "->"), array("-", "-", "-"), $value)); if (($filename = $this->getRefnameLink($ref)) !== null) { if ($this->CURRENT_ID !== $filename) { @@ -630,7 +635,7 @@ } return "</b></p>"; } - + /* FIXME: This function is a crazy performance killer */ public function qandaset($stream) { $xml = stream_get_contents($stream); @@ -640,6 +645,7 @@ $doc->preserveWhitespace = false; $doc->loadXML(html_entity_decode(str_replace("&", "&amp;amp;", "<div>$xml</div>"), ENT_QUOTES, "UTF-8")); if ($err = libxml_get_errors()) { + echo 'qandaset xml problem in ' . $this->CURRENT_ID . "\n"; print_r($err); libxml_clear_errors(); }

« previous php.doc.cvs (#3097) next »