|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-07 04:31 UTC] moacir@php.net
[2010-04-07 04:34 UTC] moacir@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: moacir
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 03:00:02 2025 UTC |
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 ...