summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-01-09 15:23:49 +0100
committerAnatol Belski <ab@php.net>2014-01-09 15:23:49 +0100
commite927dbd1f67f7a689d61915da1df8003bf255248 (patch)
tree313c36dd4d0040a4a0d4a396a168bcefbd220114
parent1c586d4070573899a3ee10687161f5bf39b3f2cd (diff)
downloadphp-git-e927dbd1f67f7a689d61915da1df8003bf255248.tar.gz
added testcase from bug #65371
-rw-r--r--ext/date/tests/bug65371.phpt22
1 files changed, 22 insertions, 0 deletions
diff --git a/ext/date/tests/bug65371.phpt b/ext/date/tests/bug65371.phpt
new file mode 100644
index 0000000000..cd025e06fc
--- /dev/null
+++ b/ext/date/tests/bug65371.phpt
@@ -0,0 +1,22 @@
+--TEST--
+Testing bug #65371
+--INI--
+date.timezone=Europe/Berlin
+--FILE--
+<?php
+
+function p($str)
+{
+ echo $str, PHP_EOL;
+ echo strftime($str), PHP_EOL;
+ echo bin2hex($str), PHP_EOL;
+ echo bin2hex(strftime($str));
+}
+
+setlocale(LC_ALL, 'C');
+p('あ');
+--EXPECT--
+あ
+あ
+e38182
+e38182