Bug->Doc #80841 [Opn]: Warning if default_charset is set to windows-1256

From: Date: Mon, 08 Mar 2021 13:03:24 +0000
Subject: Bug->Doc #80841 [Opn]: Warning if default_charset is set to windows-1256
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-18625@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80841&edit=1 ID: 80841 Updated by: cmb@php.net Reported by: muhannad17 at gmail dot com Summary: Warning if default_charset is set to windows-1256 Status: Open -Type: Bug +Type: Documentation Problem -Package: *General Issues +Package: PHP options/info functions Operating System: Windows PHP Version: 8.0.3 Block user comment: N Private report: N New Comment: Raising a warning in case of an unsupported encoding is a deliberate change[1]. It might be worthwhile to document that. [1] <https://github.com/php/php-src/commit/481b7421f3dc2f2706e54dc1b8d4701960fde4aa> Previous Comments: ------------------------------------------------------------------------ [2021-03-06 19:42:21] muhannad17 at gmail dot com 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, ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=80841&edit=1

« previous php.doc.bugs (#18625) next »