summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2014-03-27 15:35:16 +0100
committerOndřej Surý <ondrej@sury.org>2014-03-27 15:35:16 +0100
commit30bdcf2392ef8cc7b8b4a07b49367571ae1db286 (patch)
treec98975e6a71c722e7ce3b31c7c221ceb0e9a1f25 /tests
parentd67160a566757f858e5883201e518230f5221c6b (diff)
downloadphp-30bdcf2392ef8cc7b8b4a07b49367571ae1db286.tar.gz
New upstream version 5.6.0~alpha3+dfsgupstream/5.6.0_alpha3+dfsg
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/encoding.phpt39
-rw-r--r--tests/func/010.phpt2
2 files changed, 40 insertions, 1 deletions
diff --git a/tests/basic/encoding.phpt b/tests/basic/encoding.phpt
new file mode 100644
index 000000000..b2ee5f3ca
--- /dev/null
+++ b/tests/basic/encoding.phpt
@@ -0,0 +1,39 @@
+--TEST--
+PHP encoding setting test
+--INI--
+--FILE--
+<?php
+var_dump(ini_get('default_charset'));
+var_dump(ini_get('input_encoding'));
+var_dump(ini_get('internal_encoding'));
+var_dump(ini_get('output_encoding'));
+
+var_dump(ini_set('default_charset', 'ISO-8859-1'));
+var_dump(ini_get('default_charset'));
+var_dump(ini_get('input_encoding'));
+var_dump(ini_get('internal_encoding'));
+var_dump(ini_get('output_encoding'));
+
+var_dump(ini_set('input_encoding', 'ISO-8859-1'));
+var_dump(ini_set('internal_encoding', 'ISO-8859-1'));
+var_dump(ini_set('output_encoding', 'ISO-8859-1'));
+var_dump(ini_get('input_encoding'));
+var_dump(ini_get('internal_encoding'));
+var_dump(ini_get('output_encoding'));
+
+--EXPECTF--
+string(5) "UTF-8"
+string(0) ""
+string(0) ""
+string(0) ""
+string(5) "UTF-8"
+string(10) "ISO-8859-1"
+string(0) ""
+string(0) ""
+string(0) ""
+string(0) ""
+string(0) ""
+string(0) ""
+string(10) "ISO-8859-1"
+string(10) "ISO-8859-1"
+string(10) "ISO-8859-1" \ No newline at end of file
diff --git a/tests/func/010.phpt b/tests/func/010.phpt
index f970283dc..6d5c30c9e 100644
--- a/tests/func/010.phpt
+++ b/tests/func/010.phpt
@@ -8,7 +8,7 @@ if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
<?php
// the stack size + some random constant
-$boundary = 64*1024;
+$boundary = 16*1024-16;
$limit = $boundary+42;