php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3799 default_charset brings small incompatibility
Submitted: 2000-03-10 12:38 UTC Modified: 2015-05-12 14:26 UTC
Votes:2
Avg. Score:2.0 ± 1.0
Reproduced:0 of 2 (0.0%)
From: k at les dot cz Assigned: cmb (profile)
Status: Wont fix Package: *General Issues
PHP Version: 4.0 Latest CVS (10/03/2000) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: k at les dot cz
New email:
PHP Version: OS:

 

 [2000-03-10 12:38 UTC] k at les dot cz
could be possible to set default_charset to "none"
by default due to compatibility with older versions?

thanks

  pavel

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-31 22:47 UTC] waldschrott@php.net

 [2000-08-01 13:41 UTC] k at les dot cz
yes, i know. that's why i call it "feature request", not bugreport. i think if default value were "none", it should help php users from non-isolatin1 countries a lot..
 [2000-08-01 13:45 UTC] k at les dot cz
oops.. i was talking about NEW php users of course...
the problem is in modules for charset conversion, they are getting confused by iso-latin1 header, and it's hard for newbies to solve it... at least it was hard for experienced users when this new feature appeared :)
 [2000-08-01 14:06 UTC] waldschrott@php.net
Where is the problem for a newbie to have a look on the
php.ini file, or am I missing sth?
 [2000-08-01 17:28 UTC] k at les dot cz
the problem is that if you're installing a new software you don't suppose it's preconfigured for a special charset.
of course, even if you're a newbie, you'll get it after some investigation :)

the point of this request is - if default_charset were set to "none" by default, if would work for everyone by default. if it's set to anything else, it works "only" for iso-latin1 users.
 [2000-08-01 17:34 UTC] waldschrott@php.net

 [2000-08-02 12:15 UTC] joey@php.net
I can almost promise this is never going to happen.
The default_charset was created to make the 
"default install" of php [more] secure against the
"cross site scripting" bug.

For more info, please see the CERT Advisory:
http://www.cert.org/advisories/CA-2000-02.html
 [2013-09-29 17:48 UTC] cmbecker69 at gmx dot de
According to the manual[1] default_charset already defaults to '', 
what has the desired effect.  A test conformed that even for the 
windows binary of PHP-4.3.11.

It seems to me, the request should be finally closed.

[1] <http://www.php.net/manual/en/ini.core.php#ini.default-charset>
 [2014-03-07 12:20 UTC] narf at devilix dot net
And now PHP 5.6 switches the default to 'UTF-8' - it was about time to encourage usage of that charset. Either way this should be closed.
 [2015-05-12 14:26 UTC] cmb@php.net
-Status: Suspended +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2015-05-12 14:26 UTC] cmb@php.net
Indeed, Andrey. Furthermore the docs[1] rightly state:

| Setting default_charset to an empty value is not recommended.

[1] <http://php.net/manual/en/ini.core.php#ini.default-charset>
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC