From: bpipe at mail dot ru
Operating system:
PHP version: 5.2.1
PHP Bug Type: Feature/Change Request
Bug description: DOMDocument->createElement()
Description:
------------
DomDocument->CreateElement()
I have a feature request, i think you should add a waring or notice when
someone is calling CreateElement with ':' in node name.
Like this one:
$xsl->createElement('xsl:import');
instead of CreateElementNS, because this problem is hard to detect
(document look like it should when you output it)
I made this mistake myself and it took me 2 days to find out the problem,
and only when i found the problem i managed to find any information about
this in bugzilla.
A notice when you create XML node with ':' in name could save 2 days of my
life )
Really very hard to detect this mistake, i was googling, sitting in IRC
and asking everyone for 48 hours without any result. And i think I'm not
alone who "stepped on this rake"
--
Edit bug report at http://bugs.php.net/?id=40567&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=40567&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=40567&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=40567&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40567&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=40567&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40567&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40567&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40567&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40567&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40567&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=40567&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=40567&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40567&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40567&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40567&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40567&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40567&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40567&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40567&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40567&r=mysqlcfg