xref: /PHP-5.6/Zend/tests/declare_003.phpt (revision b0bbfee7)
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 = NULL);
12declare(encoding = M_PI);
13
14print 'DONE';
15
16?>
17--EXPECTF--
18Warning: Unsupported encoding [1] in %sdeclare_003.php on line %d
19
20Warning: Unsupported encoding [11111111111111] in %sdeclare_003.php on line %d
21
22Warning: Unsupported encoding [] in %sdeclare_003.php on line %d
23
24Fatal error: Cannot use constants as encoding in %sdeclare_003.php on line %d
25