mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
8755976315
This was using the wrong strict_types information. In this case the call is performed with strict_types=0.
15 lines
268 B
PHP
15 lines
268 B
PHP
--TEST--
|
|
Arginfo / zpp consistency check for call_user_func() in strict context
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace Foo;
|
|
|
|
// strlen() will be called with strict_types=0, so this is legal.
|
|
var_dump(call_user_func('strlen', false));
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(0)
|