php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14526 Auto-appended ampersand characters cause problems with W3C compliance
Submitted: 2001-12-14 17:43 UTC Modified: 2001-12-14 17:47 UTC
From: ug14rrd at cs dot bham dot ac dot uk Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.0.6 OS: SunOS
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ug14rrd at cs dot bham dot ac dot uk
New email:
PHP Version: OS:

 

 [2001-12-14 17:43 UTC] ug14rrd at cs dot bham dot ac dot uk
When using sessions, PHP auto-appends '&' characters to be links. This is a problem if I then run my code through the W3C HTML Validator. It gives the error:

Error: unknown entity "PHPSESSID" 

When it sees &PHPSESSID= etc... appended to my links.

Would it be possible to have the auto-appended ampersands replaced by '&' as described here

http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.2

as then sites using PHP and sessions will pass the W3C Validity check.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 17:47 UTC] jimw@php.net
not a bug. in php.ini, set arg_separator.output = "&"
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 09:01:28 2025 UTC