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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 - 11 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 21:01:36 2024 UTC