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