|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-03-08 13:03 UTC] cmb@php.net
-Type: Bug
+Type: Documentation Problem
-Package: *General Issues
+Package: PHP options/info functions
[2021-03-08 13:03 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 01:00:01 2025 UTC |
Description: ------------ When you try to set the default_charset ini setting to "Windows-1256" dynamically inside a php script a warning will show as the following : Warning: ini_set(): Unknown encoding "windows-1256" in ini setting in *.php on line * Warning: ini_set(): INI setting contains invalid encoding "windows-1256" in *.php on line * The (default_charset) setting is set without any issues and the page renders in "windows-1256" without any encoding issues except the warnings. This bug is only appears in PHP 8. PHP 7.4 doesn't have this issue. Test script: --------------- ini_set("default_charset","windows-1256"); Expected result: ---------------- No Warnings,