diff options
| author | Anthony Ferrara <ircmaxell@gmail.com> | 2015-02-20 11:43:18 -0500 |
|---|---|---|
| committer | Anthony Ferrara <ircmaxell@gmail.com> | 2015-02-20 11:43:18 -0500 |
| commit | e3b020b945582a45465ae2ae145af9c250be9e54 (patch) | |
| tree | 34c0cfee6a81a15fb2544625d57ac6a360f49953 /ext/mbstring/tests/zend_multibyte-15.phpt | |
| parent | cfae254b6b3966f4c1438563eb066de1c434616b (diff) | |
| download | php-git-e3b020b945582a45465ae2ae145af9c250be9e54.tar.gz | |
Fix declare error behavior so that improper usages will actually error
Diffstat (limited to 'ext/mbstring/tests/zend_multibyte-15.phpt')
| -rw-r--r-- | ext/mbstring/tests/zend_multibyte-15.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/mbstring/tests/zend_multibyte-15.phpt b/ext/mbstring/tests/zend_multibyte-15.phpt new file mode 100644 index 0000000000..6995444bbb --- /dev/null +++ b/ext/mbstring/tests/zend_multibyte-15.phpt @@ -0,0 +1,16 @@ +--TEST-- +zend multibyte (15) +--INI-- +zend.multibyte=1 +--FILE-- +<?php +declare(encoding="ISO-8859-15") { + echo "ok\n"; +} +declare(encoding="UTF-8") { + echo "ok\n"; +} +?> +--EXPECTF-- +ok +ok
\ No newline at end of file |
