cvs: ZendEngine2(PHP_5_2) /tests/multibyte multibyte_encoding_001.phpt

[email protected] ("Marcus Boerger")
Newsgroups php.zend-engine.cvs
Message-ID <cvshelly1206279567@cvsserver>
helly		Sun Mar 23 13:39:27 2008 UTC

  Added files:                 (Branch: PHP_5_2)
    /ZendEngine2/tests/multibyte	multibyte_encoding_001.phpt 
  Log:
  - MFH Add tests
  

http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/multibyte/multibyte_encoding_001.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/multibyte/multibyte_encoding_001.phpt
+++ ZendEngine2/tests/multibyte/multibyte_encoding_001.phpt
--TEST--
Zend Multibyte and ShiftJIS
--SKIPIF--
<?php
if (!in_array("detect_unicode", array_keys(ini_get_all()))) {
  die("skip Requires configure --enable-zend-multibyte option");
}
if (!extension_loaded("mbstring")) {
  die("skip Requires mbstring extension");
}
?>
--INI--
mbstring.internal_encoding=SJIS
--FILE--
<?php
declare(encoding='Shift_JIS');
$s = "•\"; // 0x95+0x5c in script, not somewhere else "
printf("%x:%x\n", ord($s[0]), ord($s[1]));
?>
===DONE===
--EXPECT--
95:5c
===DONE===
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.