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.
18 lines
411 B
18 lines
411 B
--TEST--
|
|
array_any() / array_all() leak
|
|
--DESCRIPTION--
|
|
Found in GH-16831#issuecomment-2700410631
|
|
--FILE--
|
|
<?php
|
|
|
|
// Don't touch this str_repeat + random_int combination,
|
|
// this is to circumvent SCCP and interning
|
|
$key = str_repeat('abc', random_int(3, 3));
|
|
|
|
var_dump(array_any([$key => 1], static fn () => true));
|
|
var_dump(array_all([$key => 1], static fn () => false));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|
|
|