Bug #54214 [NEW]: DOMDocument::createTextNode allows low ascii without exception
From:
Operating system: windows server
PHP version: 5.2.17
Package: DOM XML related
Bug Type: Bug
Bug description:DOMDocument::createTextNode allows low ascii without exception
Description:
------------
---
From manual page:
http://nl3.php.net/manual/en/domdocument.createtextnode.php
---
createtextnode still returns the DOMText if there is low-ascii in the
string.
It should return false. DOMDocument is there to be used to make sure you
output well-formed xml. Now it silently creates invalid xml, even though
the proper functions have been used.
MSXML _does_ except at this point.
Test script:
---------------
.createTextNode("Mensje Francina")
There is a low ascii (0x06) in front of the "F" in there for copy-paste
pleasures
Expected result:
----------------
FALSE
Actual result:
--------------
DOMText node
--
Edit bug report at http://bugs.php.net/bug.php?id=54214&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54214&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54214&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54214&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=54214&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54214&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=54214&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=54214&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=54214&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=54214&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=54214&r=support
Expected behavior: http://bugs.php.net/fix.php?id=54214&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=54214&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=54214&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=54214&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54214&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=54214&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=54214&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=54214&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=54214&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=54214&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=54214&r=mysqlcfg
Thread (2 messages)
- trenjeska+php at gmail dot com