Bug #51482 [NEW]: PhD_IDE generates invalid XML
| From: | philip@php.net | Date: | Mon, 05 Apr 2010 15:38:52 +0000 |
| Subject: | Bug #51482 [NEW]: PhD_IDE generates invalid XML | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-4156@lists.php.net to get a copy of this message | ||
From: philip
Operating system: Irrelevant
PHP version: Irrelevant
Package: Doc Build problem
Bug Type: Bug
Bug description:PhD_IDE generates invalid XML
Description:
------------
The IDE package generates invalid XML, as it appears to convert entities it
shouldn't. In this case, < to < thus invalidating the XML file.
The following test script is based off the IDE demo.
Test script:
---------------
#!/usr/bin/env php
<?php
use phpdotnet\phd as PhD;
define ('__INSTALLDIR__', '/Users/philip/php/lib/php');
define ('PHD_OUTPUT_DIR', '/Users/philip/svn/php/doc-en/output_dir/');
define('DS', DIRECTORY_SEPARATOR);
require __INSTALLDIR__ . DS . 'phpdotnet' . DS . 'phd' . DS .
'Autoloader.php';
require __INSTALLDIR__ . DS . 'phpdotnet' . DS . 'phd' . DS .
'functions.php';
spl_autoload_register(array("phpdotnet\\phd\\Autoloader", "autoload"));
$api = new PhD\Package_IDE_API(PHD_OUTPUT_DIR);
$function = $api->getFunctionByName('strcmp');
print $function->getName();
Expected result:
----------------
strcmp
Actual result:
--------------
[08:25:31 - E_WARNING ]
/Users/philip/php/lib/php/phpdotnet/phd/Package/IDE/API.php:94
simplexml_load_file(): /Users/philip/svn/php/doc-en/output_dir/ide-
functions/strcmp.xml:23: parser error : StartTag: invalid element name
[08:25:31 - E_WARNING ]
/Users/philip/php/lib/php/phpdotnet/phd/Package/IDE/API.php:94
simplexml_load_file(): <description>Returns < 0 if str1 is less than
...
--
Edit bug report at http://bugs.php.net/bug.php?id=51482&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51482&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51482&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51482&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51482&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51482&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51482&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51482&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51482&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51482&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51482&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51482&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51482&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51482&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51482&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51482&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51482&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51482&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51482&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51482&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51482&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51482&r=mysqlcfg