#32209 [NEW]: Missing ? in processing instruction

From: Date: Sun, 06 Mar 2005 21:35:42 +0000
Subject: #32209 [NEW]: Missing ? in processing instruction
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74982@lists.php.net to get a copy of this message
From: md2perpe at gmail dot com Operating system: Windows XP Home PHP version: 5.0.3 PHP Bug Type: DOM XML related Bug description: Missing ? in processing instruction Description: ------------ According to http://www.w3.org/TR/REC-xml/#sec-pi a processing instruction should begin with <?something and end with ?>. But DOMDocument::createProcessingInstruction doesn't output the questionmark at the end. Reproduce code: --------------- <?php $doc = new DOMDocument(); $pi = $doc->createProcessingInstruction('name', 'content'); $doc->appendChild($pi); echo $doc->saveHTML(); ?> Expected result: ---------------- <?name content?> Actual result: -------------- <?name content> -- Edit bug report at http://bugs.php.net/?id=32209&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32209&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32209&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32209&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32209&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32209&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32209&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32209&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32209&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32209&r=support Expected behavior: http://bugs.php.net/fix.php?id=32209&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32209&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32209&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32209&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32209&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32209&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32209&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32209&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32209&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32209&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32209&r=mysqlcfg

« previous php.bugs (#74982) next »