php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44025 It's impossible to print "<" string,
Submitted: 2008-02-02 18:26 UTC Modified: 2008-02-02 19:01 UTC
From: gmazzy at gmail dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.2.5 OS: Windows
Private report: No CVE-ID: None
 [2008-02-02 18:26 UTC] gmazzy at gmail dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-02 19:01 UTC] msaraujo@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

You should check your script, it is not bug at all.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Dec 04 16:00:01 2025 UTC