Annotation of embedaddon/php/ext/standard/tests/general_functions/bug49056.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #49056 (parse_ini_*() regression in 5.3.0 when using non-ASCII strings as option keys)
! 3: --FILE--
! 4: <?php
! 5:
! 6: $string = <<<EOT
! 7: Cooking_furniture="Küchen Möbel (en)"
! 8: Küchen_Möbel="Cooking furniture (en)"
! 9: EOT;
! 10:
! 11: $filename = dirname(__FILE__) . '/bug49056.tmp';
! 12:
! 13: file_put_contents( $filename, $string);
! 14:
! 15: var_dump(parse_ini_file($filename));
! 16:
! 17: ?>
! 18: --CLEAN--
! 19: <?php @unlink(dirname(__FILE__) . '/bug49056.tmp'); ?>
! 20: --EXPECT--
! 21: array(2) {
! 22: ["Cooking_furniture"]=>
! 23: string(23) "Küchen Möbel (en)"
! 24: ["Küchen_Möbel"]=>
! 25: string(22) "Cooking furniture (en)"
! 26: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>