php-src/Zend/tests/use_function/shadow_core.phpt
Igor Wiedler 85d4cfb00d Disallow using functions/consts defined in the same file
* Keep track of defined function and const filenames
* Prohibit use function foo if function foo exists
* Prohibit use const foo if const foo exists
2013-08-25 00:02:46 +02:00

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