xref: /PHP-7.1/Zend/tests/declare_001.phpt (revision 458f67cd)
1--TEST--
2Testing declare statement with several type values
3--SKIPIF--
4<?php
5if (!extension_loaded("mbstring")) {
6  die("skip Requires ext/mbstring");
7}
8?>
9--INI--
10zend.multibyte=1
11--FILE--
12<?php
13
14declare(encoding = 1);
15declare(encoding = 112313123213131232100);
16declare(encoding = 'utf-8');
17declare(encoding = M_PI);
18
19print 'DONE';
20
21?>
22--EXPECTF--
23Warning: Unsupported encoding [1] in %sdeclare_001.php on line %d
24
25Warning: Unsupported encoding [1.1231312321313E+20] in %sdeclare_001.php on line %d
26
27Fatal error: Encoding must be a literal in %s on line %d
28