Bug #80841 [NEW]: Warning if default_charset is set to windows-1256

From: Date: Sat, 06 Mar 2021 19:42:21 +0000
Subject: Bug #80841 [NEW]: Warning if default_charset is set to windows-1256
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232595@lists.php.net to get a copy of this message
From:             muhannad17 at gmail dot com
Operating system: Windows
PHP version:      8.0.3
Package:          *General Issues
Bug Type:         Bug
Bug description:Warning if default_charset is set to windows-1256

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 bug report at https://bugs.php.net/bug.php?id=80841&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80841&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80841&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80841&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80841&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80841&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80841&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80841&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80841&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80841&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80841&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80841&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80841&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80841&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80841&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80841&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80841&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80841&r=mysqlcfg


Thread (1 message)

  • muhannad17 at gmail dot com
« previous php.bugs (#232595) next »