xref: /PHP-8.2/Zend/tests/bug79382.phpt (revision 2af1d36b)
1--TEST--
2Bug #79382: Cannot redeclare disabled function
3--INI--
4disable_functions=strlen
5--FILE--
6<?php
7
8function strlen(string $x): int {
9    return 42;
10}
11
12var_dump(strlen("foobar"));
13
14?>
15--EXPECT--
16int(42)
17