TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
556 B
23 lines
556 B
--TEST--
|
|
GH-18823 (setlocale's 2nd and 3rd argument ignores strict_types) - strict mode
|
|
--SKIPIF--
|
|
<?php
|
|
echo 'skip setlocale() is not available in AOT';
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
try {
|
|
setlocale(LC_ALL, 0, "0");
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
try {
|
|
setlocale(LC_ALL, "0", 0);
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
setlocale(): Argument #2 ($locales) must be of type array|string|null, int given
|
|
setlocale(): Argument #3 must be of type array|string|null, int given
|
|
|