mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
85d4cfb00d
* Keep track of defined function and const filenames * Prohibit use function foo if function foo exists * Prohibit use const foo if const foo exists
17 lines
216 B
PHP
17 lines
216 B
PHP
--TEST--
|
|
shadowing a global core function with a local version
|
|
--FILE--
|
|
<?php
|
|
|
|
require 'includes/foo_strlen.php';
|
|
|
|
use function foo\strlen;
|
|
|
|
var_dump(strlen('foo bar baz'));
|
|
echo "Done\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(4)
|
|
Done
|