summaryrefslogtreecommitdiff
path: root/Zend/tests/declare_002.phpt
blob: 42f8127bfe75a5898def16ff5327085885c9a009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--TEST--
Testing declare statement with several type values
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
  die("skip Requires ext/mbstring");
}
?>
--INI--
zend.multibyte=1
--FILE--
<?php

declare(encoding = 1);
declare(encoding = 1123131232131312321);
declare(encoding = 'utf-8');
declare(encoding = M_PI);

print 'DONE';

?>
--EXPECTF--
Warning: Unsupported encoding [%d] in %sdeclare_002.php on line 3

Warning: Unsupported encoding [%f] in %sdeclare_002.php on line 4

Fatal error: Encoding must be a literal in %sdeclare_002.php on line 6