It was not thrown if the setting was specified via -d at least.
/* {{{ static PHP_INI_MH(OnUpdate_mbstring_http_input) */
static PHP_INI_MH(OnUpdate_mbstring_http_input)
{
- if (stage & (PHP_INI_STAGE_ACTIVATE | PHP_INI_STAGE_RUNTIME)) {
+ if (new_value) {
php_error_docref("ref.mbstring", E_DEPRECATED, "Use of mbstring.http_input is deprecated");
}
/* {{{ static PHP_INI_MH(OnUpdate_mbstring_http_output) */
static PHP_INI_MH(OnUpdate_mbstring_http_output)
{
- if (stage & (PHP_INI_STAGE_ACTIVATE | PHP_INI_STAGE_RUNTIME)) {
+ if (new_value) {
php_error_docref("ref.mbstring", E_DEPRECATED, "Use of mbstring.http_output is deprecated");
}
/* {{{ static PHP_INI_MH(OnUpdate_mbstring_internal_encoding) */
static PHP_INI_MH(OnUpdate_mbstring_internal_encoding)
{
- if (stage & (PHP_INI_STAGE_ACTIVATE | PHP_INI_STAGE_RUNTIME)) {
+ if (new_value) {
php_error_docref("ref.mbstring", E_DEPRECATED, "Use of mbstring.internal_encoding is deprecated");
}
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--INI--
-mbstring.internal_encoding=Shift_JIS
+internal_encoding=Shift_JIS
mbstring.language=Japanese
--FILE--
<?php
-var_dump(ini_get('mbstring.internal_encoding'));
+var_dump(ini_get('internal_encoding'));
var_dump(mb_internal_encoding());
?>
--EXPECT--
}
?>
--EXPECT--
+PHP Deprecated: PHP Startup: Use of mbstring.http_input is deprecated in Unknown on line 0
+PHP Deprecated: PHP Startup: Use of mbstring.http_output is deprecated in Unknown on line 0
+PHP Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
+
+Deprecated: PHP Startup: Use of mbstring.http_input is deprecated in Unknown on line 0
+
+Deprecated: PHP Startup: Use of mbstring.http_output is deprecated in Unknown on line 0
+
+Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
array(13) {
["internal_encoding"]=>
string(5) "UTF-8"
?>
--EXPECT--
+PHP Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
+
+Deprecated: PHP Startup: Use of mbstring.internal_encoding is deprecated in Unknown on line 0
*** Testing INI mbstring.internal_encoding : basic functionality ***
ISO-8859-7
ISO-8859-7
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--INI--
-mbstring.internal_encoding=UTF-8
+internal_encoding=UTF-8
mbstring.http_output_conv_mimetypes=plain
--FILE--
<?php
--SKIPIF--
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
--INI--
-mbstring.internal_encoding=UTF-8
+internal_encoding=UTF-8
mbstring.http_output_conv_mimetypes=html
--FILE--
<?php
?>
--INI--
mbstring.language=Japanese
-mbstring.internal_encoding=UTF-8
+internal_encoding=UTF-8
--FILE--
<?php
var_dump(ini_get('mbstring.language'));
-var_dump(ini_get('mbstring.internal_encoding'));
+var_dump(ini_get('internal_encoding'));
var_dump(mb_internal_encoding());
?>