mirror of
https://github.com/php/php-src.git
synced 2024-12-15 04:45:03 +08:00
30 lines
722 B
PHP
30 lines
722 B
PHP
--TEST--
|
|
Test INI mbstring.internal_encoding basic - encoding when valid specified
|
|
--SKIPIF--
|
|
<?php
|
|
extension_loaded('mbstring') or die('skip');
|
|
function_exists('mb_stripos') or die("skip mb_stripos() is not available in this build");
|
|
?>
|
|
--INI--
|
|
mbstring.internal_encoding=ISO-8859-7
|
|
--FILE--
|
|
<?php
|
|
|
|
echo "*** Testing INI mbstring.internal_encoding : basic functionality ***\n";
|
|
|
|
echo mb_internal_encoding()."\n";
|
|
echo ini_get('mbstring.internal_encoding')."\n";
|
|
mb_internal_encoding('UTF-8');
|
|
echo mb_internal_encoding()."\n";
|
|
echo ini_get('mbstring.internal_encoding')."\n";
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
*** Testing INI mbstring.internal_encoding : basic functionality ***
|
|
ISO-8859-7
|
|
ISO-8859-7
|
|
UTF-8
|
|
ISO-8859-7
|
|
===DONE===
|