summaryrefslogtreecommitdiff
path: root/ext/mbstring/tests/zend_multibyte-14.phpt
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2008-07-28 07:01:54 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2008-07-28 07:01:54 +0000
commitb9eaa80150bc46c021f0fcaae7a347d7521ade4c (patch)
tree8cf9975e86eec7b582c51c43b1d0e335e93c5469 /ext/mbstring/tests/zend_multibyte-14.phpt
parentcc8145d14ff74ef89c8895a3f73a7bb14a5d8e9f (diff)
downloadphp-git-b9eaa80150bc46c021f0fcaae7a347d7521ade4c.tar.gz
- SCNG(input_filter) can be null if the script encoding is idential to
the internal encoding.
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-14.phpt')
-rw-r--r--ext/mbstring/tests/zend_multibyte-14.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend_multibyte-14.phpt b/ext/mbstring/tests/zend_multibyte-14.phpt
new file mode 100644
index 0000000000..dc968d78b0
--- /dev/null
+++ b/ext/mbstring/tests/zend_multibyte-14.phpt
@@ -0,0 +1,22 @@
+--TEST--
+zend multibyte (13)
+--SKIPIF--
+<?php
+ini_set("mbstring.script_encoding", "SJIS");
+ini_set("mbstring.script_encoding", "***") != "SJIS" and
+ die("skip zend-multibyte is not available");
+?>
+--INI--
+mbstring.script_encoding=UTF-8
+mbstring.internal_encoding=UTF-8
+--FILE--
+<?php
+var_dump(substr(file_get_contents(__FILE__), __COMPILER_HALT_OFFSET__));
+var_dump(bin2hex("äëüáéú"));
+__halt_compiler();test
+test
+--EXPECT--
+string(10) "test
+test
+"
+string(24) "c3a4c3abc3bcc3a1c3a9c3ba"