|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-03 17:53 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 08:00:01 2025 UTC |
The '&' in character references is converted to & when used in set_attribute e.g. ! is changed to &#033; $oXml = new_xmldoc("1.0"); $oRoot = $oXml->add_root("outputXml"); $oRoot->set_attribute("test","&033;"); print $oXml->dumpmem(); This produces <?xml version="1.0"?> <outputXml test="&033;"/> instead of <?xml version="1.0"?> <outputXml test="&033;"/> PHP modules compiled: './configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-config-file-path=/etc/httpd' '--with-regex=system' '--enable-debugger' '--enable-magic-quotes' '--enable-sysvshm' '--with-dom' '--enable-force-cgi-redirect' '--enable-sigchild' '--with-wddx' '--enable-inline-optimization' '--with-gnu-ld' '--enable-bcmath' '--enable-crypt' '--with-xml' '--with-sablot' '--enable-dbg=shared' '--with-dbg-profiler'