php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26354 <Address> forced to lower case
Submitted: 2003-11-21 14:45 UTC Modified: 2003-11-21 16:37 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: spam at tkz dot net Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.3.3 OS: linux & windows xp
Private report: No CVE-ID: None
 [2003-11-21 14:45 UTC] spam at tkz dot net
Description:
------------
<?php 
echo "<Address >blah</Address >";
echo "<Address>blah</Address>";
echo "<Add" . "ress>blah</Address>";
?>

displays:
<address>blah</address><address>blah</address><address>blah</address>

I can't seem to find a way to display Address as an XML tag.  Somehow it is automatically forced to be lower case! This is like a magic number.  If I mispell it then it comes through without modification, so Address is a special case.  I understand that functions are case insensitive, but text shouldn't be case lowercase a magic word.

Reproduce code:
---------------
<?php 
echo "<Address >blah</Address >";
echo "<Address>blah</Address>";
echo "<Add" . "ress>blah</Address>";
?>

Expected result:
----------------
<address>blah</address><address>blah</address><address>blah</address>

Actual result:
--------------
<Address>blah</Address><Address>blah</Address><Address>blah</Address>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-21 14:46 UTC] spam at tkz dot net
accidently switched expected and actual results.
 [2003-11-21 16:37 UTC] elmicha@php.net
Browser issue (at least Mozilla does this).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC