From:             gmazzy at gmail dot com
Operating system: Windows
PHP version:      5.2.5
PHP Bug Type:     Scripting Engine problem
Bug description:  It's impossible to print "<" string, 

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

-- 
Edit bug report at http://bugs.php.net/?id=44025&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=44025&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44025&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44025&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44025&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44025&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44025&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44025&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44025&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44025&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44025&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44025&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44025&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44025&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44025&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=44025&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=44025&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44025&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44025&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44025&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44025&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44025&r=mysqlcfg

Reply via email to