From: james dot zimmerman at comfreeze dot net Operating system: Windows XP SP2/Linux PHP version: 5.2.1 PHP Bug Type: XML related Bug description: Inconsitent XMLwriter::writeDTD
Description: ------------ I have a home development server based on XAMPP full install where this code works fine. Uploaded to web server hosting with Dreamhost and the Public and System tags fail reporting no space between SYSTEM and PUBLIC parts of the DTD output. Both systems are reporting PHP 5.2.1 and are using SQLite 2.8.17, only inconsistency is Dreamhost phpinfo also lists PDO_SQLite @ 3.3.7 but SQLite databases create with standard calls appears to be generating the same SQLite 2.1 base files on both systems. Reproduce code: --------------- $outputWriter->writeDTD('html','-//W3C//DTD XHTML 1.0 Strict//EN', 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'); Expected result: ---------------- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Actual result: -------------- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> -- Edit bug report at http://bugs.php.net/?id=40774&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40774&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40774&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40774&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40774&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40774&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40774&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40774&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40774&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40774&r=support Expected behavior: http://bugs.php.net/fix.php?id=40774&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40774&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40774&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40774&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40774&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40774&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40774&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40774&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40774&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40774&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40774&r=mysqlcfg