summaryrefslogtreecommitdiff
path: root/Zend/tests/type_declarations/scalar_strict_declaration_placement_006.phpt
blob: 6d731c1557d261fbf4225cb1b53a02740ff9c58f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--TEST--
Test strict declaration being first operation only 006
--SKIPIF--
<?php
if (!extension_loaded("mbstring")) {
  die("skip Requires mbstring extension");
}
?>
--INI--
zend.multibyte=1
--FILE--
<?php
declare(encoding="UTF-8");
declare(strict_types=1);

namespace Foo;

var_dump(strlen("abc"));

?>
--EXPECT--
int(3)