php-src/Zend/tests/call_user_func_strict_arginfo_check.phpt
Nikita Popov 8755976315 Fix arginfo/zpp consistency check for call_user_func from strict_types scope
This was using the wrong strict_types information. In this case the
call is performed with strict_types=0.
2021-08-16 12:11:39 +02:00

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)