php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17306 PHP output does not validate as HTML
Submitted: 2002-05-18 08:25 UTC Modified: 2002-06-08 11:06 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: admin at pfeifferpascal dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.1 OS: all
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: admin at pfeifferpascal dot de
New email:
PHP Version: OS:

 

 [2002-05-18 08:25 UTC] admin at pfeifferpascal dot de
The current arg_separator.output is set to & by default.
But & must be encoded to & to validate as HTML.
Consequently, I would prefer to set & as default for arg_separator.output in future releases.
You could say, it can be changed in php.ini, but my provider doesn't change it anyway and changes via .htaccess lead to error 500 (Internal Server Error).
Without changes, transparent session-ids cannot validate as HTML.
validator.w3.org says:
Error: unknown entity "PHPSESSIONID"

PS. Sorry for my English.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-08 10:58 UTC] bigredlinux at yahoo dot com
According to the standard, the arg separator should actually not be '&' or '&' at all but rather ';'.  Perl has adopted this standard and I believe the php should as well.  It is a drop in replacement change in php.ini and would not really affect users scripts too much....well, maybe, but still.
 [2002-06-08 11:06 UTC] mfischer@php.net
This would break to many standard instals out there. People who know what they're doing know they can change it. I think if we all feel to changing it, we'll do it. But the time hasn't come yet (and I think it won't for quite some time).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 03:01:32 2025 UTC