xref: /PHP-8.1/Zend/tests/declare_004.phpt (revision 05166566)
1--TEST--
2Testing declare statement with several type values
3--INI--
4zend.multibyte=1
5--FILE--
6<?php
7
8declare(encoding = 1);
9declare(encoding = 1123131232131312321);
10declare(encoding = M_PI);
11
12print 'DONE';
13
14?>
15--EXPECTF--
16Warning: Unsupported encoding [%d] in %sdeclare_004.php on line 3
17
18Warning: Unsupported encoding [%f] in %sdeclare_004.php on line 4
19
20Fatal error: Encoding must be a literal in %sdeclare_004.php on line 5
21