-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Remove long-deprecated mbstring INI settings #12445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,6 @@ MBSTRING_API bool php_mb_check_encoding(const char *input, size_t length, const | |
MBSTRING_API const mbfl_encoding* mb_guess_encoding_for_strings(const unsigned char **strings, size_t *str_lengths, size_t n, const mbfl_encoding **elist, unsigned int elist_size, bool strict, bool order_significant); | ||
|
||
ZEND_BEGIN_MODULE_GLOBALS(mbstring) | ||
char *internal_encoding_name; | ||
const mbfl_encoding *internal_encoding; | ||
const mbfl_encoding *current_internal_encoding; | ||
const mbfl_encoding *http_output_encoding; | ||
|
@@ -109,7 +108,6 @@ ZEND_BEGIN_MODULE_GLOBALS(mbstring) | |
/* Whether an explicit internal_encoding / http_output / http_input encoding was set. */ | ||
bool internal_encoding_set; | ||
bool http_output_set; | ||
bool http_input_set; | ||
Comment on lines
109
to
-112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are the two other fields not removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because while There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ACK, we probably should deprecate the functions that affect those fields. |
||
#ifdef HAVE_MBREGEX | ||
zend_long regex_retry_limit; | ||
#endif | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ Bug #48697 (mb_internal_encoding() value gets reset by parse_str() or mb_parse_s | |
mbstring | ||
--FILE-- | ||
<?php | ||
ini_set('mbstring.internal_encoding', 'ISO-8859-15'); | ||
ini_set('mbstring.encoding_translation', true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated: This could use the INI PHPT section to set the INI config |
||
var_dump(mb_internal_encoding()); | ||
mb_internal_encoding('UTF-8'); | ||
|
@@ -17,8 +16,7 @@ parse_str('a=b', $ary); | |
var_dump(mb_internal_encoding()); | ||
?> | ||
--EXPECTF-- | ||
Deprecated: ini_set(): Use of mbstring.internal_encoding is deprecated in %s on line %d | ||
string(11) "ISO-8859-15" | ||
string(5) "UTF-8" | ||
string(5) "UTF-8" | ||
string(5) "UTF-8" | ||
string(5) "UTF-8" | ||
|
Uh oh!
There was an error while loading. Please reload this page.