xref: /PHP-5.4/Zend/tests/declare_004.phpt (revision 148120e1)
1--TEST--
2Testing declare statement with several type values
3--SKIPIF--
4<?php
5if (!ini_get("zend.multibyte")) {
6  die("skip Requires zend.multibyte=1");
7}
8?>
9--FILE--
10<?php
11
12declare(encoding = 1);
13declare(encoding = 1123131232131312321);
14declare(encoding = NULL);
15declare(encoding = M_PI);
16
17print 'DONE';
18
19?>
20--EXPECTF--
21Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
22
23Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
24
25Warning: Unsupported encoding [] in %sdeclare_004.php on line 5
26
27Fatal error: Cannot use constants as encoding in %sdeclare_004.php on line 6
28