5 ms·
Can you give a demonstration of its non-uniqueness?
by hackernewz 15y ago
Can you give a demonstration of its non-uniqueness?
- duskwuff 15y ago<? is used in XML headers. OTOH, you shouldn't ever be generating XML headers from PHP anyway (XHTML is a dead-end, and raw XML should be generated by an XML library), so this shouldn't be that big of an issue.
- hackernewz 15y agoBut, less than question mark and a space are not a valid XML combination. XML processing instructions cannot begin with a space. Likewise, PHP cannot run commands into the short tags, like <?echo $foo; ?>. So, there really is no collision, it's just grandstanding.
- mgkimsal 15y agoI wonder if the XML PI spec says anything about <?= Can you have a PI start with = ? If not, the echo short tag should stay for certain.
- zeen 15y ago'<?=' is invalid XML. '<?' must be followed by a valid XML Name. See http://www.w3.org/TR/2008/REC-xml-20081126/#sec-pi http://www.w3.org/TR/2008/REC-xml-20081126/#sec-pi