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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: spam at tkz dot net
New email:
PHP Version: OS:

 

 [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: Sat Apr 20 01:01:28 2024 UTC