Bug #51482 [Opn->Csd]: PhD_IDE generates invalid XML

From: Date: Wed, 07 Apr 2010 02:34:35 +0000
Subject: Bug #51482 [Opn->Csd]: PhD_IDE generates invalid XML
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4163@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51482&edit=1 ID: 51482 Updated by: moacir@php.net Reported by: philip@php.net Summary: PhD_IDE generates invalid XML -Status: Open +Status: Closed Type: Bug Package: Doc Build problem Operating System: Irrelevant PHP Version: Irrelevant -Assigned To: +Assigned To: moacir Previous Comments: ------------------------------------------------------------------------ [2010-04-07 04:31:04] moacir@php.net Automatic comment from SVN on behalf of moacir Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=297600 Log: Fixing bug #51482 - PhD_IDE generates invalid XML + Added htmlspecialchars in the return of the readContents() function ------------------------------------------------------------------------ [2010-04-05 17:38:52] philip@php.net Description: ------------ The IDE package generates invalid XML, as it appears to convert entities it shouldn't. In this case, &lt 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 this bug report at http://bugs.php.net/bug.php?id=51482&edit=1

« previous php.doc.bugs (#4163) next »