nlopess Tue Sep 6 13:58:18 2005 EDT
Modified files:
/phpdoc/en/appendices extensions.xml
/phpdoc/scripts extensions.xml.php
Log:
kill a notice. implement bogus purpose checking.
regenerate the file again, as it has a tag in the wrong place
http://cvs.php.net/diff.php/phpdoc/en/appendices/extensions.xml?r1=1.12&r2=1.13&ty=u
Index: phpdoc/en/appendices/extensions.xml
diff -u phpdoc/en/appendices/extensions.xml:1.12
phpdoc/en/appendices/extensions.xml:1.13
--- phpdoc/en/appendices/extensions.xml:1.12 Tue Sep 6 13:01:43 2005
+++ phpdoc/en/appendices/extensions.xml Tue Sep 6 13:58:16 2005
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<!--
DO NOT TRANSLATE THIS FILE! All the content that is displayed
on the extension categorization page in your translated manual
@@ -348,7 +348,6 @@
<listitem><para><xref linkend="ref.openal"/></para></listitem>
</itemizedlist>
</section>
- </section>
<section id="refs.utilspec.cmdline">
&extcat.purpose.utilspec.cmdline;
@@ -363,10 +362,10 @@
&extcat.purpose.utilspec.windows;
<itemizedlist>
- <listitem><para><xref linkend="ref.dotnet"/></para></listitem>
<listitem><para><xref linkend="ref.com"/></para></listitem>
- <listitem><para><xref linkend="ref.w32api"/></para></listitem>
+ <listitem><para><xref linkend="ref.dotnet"/></para></listitem>
<listitem><para><xref linkend="ref.printer"/></para></listitem>
+ <listitem><para><xref linkend="ref.w32api"/></para></listitem>
</itemizedlist>
</section>
@@ -375,10 +374,11 @@
<itemizedlist>
<listitem><para><xref linkend="ref.apache"/></para></listitem>
- <listitem><para><xref linkend="ref.nsapi"/></para></listitem>
<listitem><para><xref linkend="ref.iisfunc"/></para></listitem>
+ <listitem><para><xref linkend="ref.nsapi"/></para></listitem>
</itemizedlist>
</section>
+ </section>
</section>
<section id="extensions.membership">
http://cvs.php.net/diff.php/phpdoc/scripts/extensions.xml.php?r1=1.4&r2=1.5&ty=u
Index: phpdoc/scripts/extensions.xml.php
diff -u phpdoc/scripts/extensions.xml.php:1.4
phpdoc/scripts/extensions.xml.php:1.5
--- phpdoc/scripts/extensions.xml.php:1.4 Tue Sep 6 08:45:28 2005
+++ phpdoc/scripts/extensions.xml.php Tue Sep 6 13:58:18 2005
@@ -16,7 +16,7 @@
| Authors: Nuno Lopes <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: extensions.xml.php,v 1.4 2005/09/06 12:45:28 nlopess Exp $
+ $Id: extensions.xml.php,v 1.5 2005/09/06 17:58:18 nlopess Exp $
*/
@@ -51,6 +51,7 @@
foreach ($matches as $match) {
switch($match[1]) {
case 'Purpose':
+ $ext_list[$ext] = rtrim($match[2]); //
for debugging purposes
case 'State':
${$match[1]}[rtrim($match[2])][$ext] =
1;
unset($miss[$match[1]]); // for the
debug part below
@@ -116,7 +117,7 @@
$topname = $tmp[count($tmp)-1];
// this means that we have 2 levels (e.g. basic.*)
- if ($topnode->section->itemizedlist->listitem->para->xref) {
+ if ($topnode->section->itemizedlist) {
foreach ($topnode as &$lastnode) {
$tmp = explode('.',
(string)$lastnode->attributes());
$name = $tmp[1].'.'.$tmp[2];
@@ -124,6 +125,8 @@
$lastnode->itemizedlist = PHP_EOL; // clean the
list
foreach ($Purpose[$name] as $ext => $dummy) {
+ unset($ext_list[$ext]); // to generate
the debug messages later
+
$lastnode->itemizedlist .= <<< XML
<listitem><para><xref linkend="$ext"/></para></listitem>
@@ -144,6 +147,12 @@
$topnode->itemizedlist = PHP_EOL; // clean the list
foreach($tmp[$topname] as $ext => $dummy) {
+
+ // to generate the debug messages later
+ if ($section == 'Purpose') {
+ unset($ext_list[$ext]);
+ }
+
$topnode->itemizedlist .= <<< XML
<listitem><para><xref linkend="$ext"/></para></listitem>
@@ -169,6 +178,14 @@
print_r($debug['purpose']);
}
+if (count($ext_list)) {
+ echo "\nExtensions with bogus Purpose:\n";
+
+ foreach ($ext_list as $ext => $bug) {
+ echo "$ext \t => '$bug'\n";
+ }
+}
+
if (isset($debug['membership'])) {
echo "\nExtensions Missing Membership:\n";
print_r($debug['membership']);