php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8274 PHP not w3c compliant
Submitted: 2000-12-15 08:09 UTC Modified: 2000-12-22 17:47 UTC
From: klaasb at abrh dot nl Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Linux Redhat 6.1 running 2.2.18
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: klaasb at abrh dot nl
New email:
PHP Version: OS:

 

 [2000-12-15 08:09 UTC] klaasb at abrh dot nl
When I ran my page through the HTML validator of de http://www.w3c.org/ I ran into the following:
PHP sometimes adds &PHPSESSID=bladiebla to urls in my page.
However the use of the & is not valid according to w3c.org, I should use & instead.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-17 10:34 UTC] stas@php.net
& is a variable separator in URL and as such, is a valid URL
character.
 [2000-12-18 04:58 UTC] stas@php.net
You may use arg_separator INI entry, like this:

arg_separator = "&"
 [2000-12-18 05:20 UTC] sniper@php.net
Reopened, as the arg_separator directive is missing from
php.ini-dist / optimized and using '&' with it
does not work as the variable values get chopped.

Test script (shortest possible ;)

test.php:
<?php phpinfo();?>

And as url use something like this:

test.php?test1=12345&abcd=12345&aaa=bbbbb

BUT using ';' with arg_separator works fine
which is (AFAIK) valid too.

--Jani


 [2000-12-18 05:37 UTC] sniper@php.net
And one more thing:

When using transsids, ';' works fine, but when
'&amp;' is used, only '&' is taken of it..

--Jani
 [2000-12-22 17:47 UTC] sas@php.net
Fixed in CVS. Thanks for your report!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jun 29 23:00:01 2026 UTC