|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-02-02 19:01 UTC] msaraujo@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 16:00:01 2025 UTC |
Description: ------------ Hi, I'm running PHP 5.2.5, on Latest Apache alone. I've enable only mysql extension, I've in php.ini short_open_tag = Off, I'd like to output text into xml so when I declare a string "<?xml version=\"1.0\"\x3F>\n"; I've escaped the " by the manual but it's not working, even $xml = "<"; echo $xml; don't works too. Why ? I think that it's a bug. Reproduce code: --------------- <?php include "mysql_login.php"; @mysql_connect($host, $user, $pwd) or die("Could not connect to MySQL server!\n"); @mysql_select_db($db) or die("Could not select database!"); $query = "SELECT * FROM route WHERE linea=8 ORDER BY vertex"; $result = mysql_query($query); $xml = "<?xml version=\"1.0\"\x3F>\n"; echo $xml; ?> Expected result: ---------------- <?xml version="1.0"?> Actual result: -------------- Nothing