cvs: phd(PHD_0_4) /themes/pear peartheme.php /themes/php phpdotnet.php

From: Date: Mon, 26 Jan 2009 21:45:28 +0000
Subject: cvs: phd(PHD_0_4) /themes/pear peartheme.php /themes/php phpdotnet.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-3096@lists.php.net to get a copy of this message
cweiske Mon Jan 26 21:45:28 2009 UTC Modified files: (Branch: PHD_0_4) /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.8.2.2.2.5&r2=1.8.2.2.2.6&diff_format=u Index: phd/themes/pear/peartheme.php diff -u phd/themes/pear/peartheme.php:1.8.2.2.2.5 phd/themes/pear/peartheme.php:1.8.2.2.2.6 --- phd/themes/pear/peartheme.php:1.8.2.2.2.5 Mon Jan 26 21:32:44 2009 +++ phd/themes/pear/peartheme.php Mon Jan 26 21:45:27 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.53.2.4.2.8&r2=1.53.2.4.2.9&diff_format=u Index: phd/themes/php/phpdotnet.php diff -u phd/themes/php/phpdotnet.php:1.53.2.4.2.8 phd/themes/php/phpdotnet.php:1.53.2.4.2.9 --- phd/themes/php/phpdotnet.php:1.53.2.4.2.8 Wed Dec 31 16:29:49 2008 +++ phd/themes/php/phpdotnet.php Mon Jan 26 21:45:28 2009 @@ -1,5 +1,5 @@ <?php -/* $Id: phpdotnet.php,v 1.53.2.4.2.8 2008/12/31 16:29:49 bjori Exp $ */ +/* $Id: phpdotnet.php,v 1.53.2.4.2.9 2009/01/26 21:45:28 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 */ @@ -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 (#3096) next »