php-src/Zend/tests/use_function/shadow_core.phpt
Peter Kokot f6605c788f Rename *.php files in Zend/tests to *.inc
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
2018-09-23 17:20:42 +02:00

16 lines
216 B
PHP

--TEST--
shadowing a global core function with a local version
--FILE--
<?php
require 'includes/foo_strlen.inc';
use function foo\strlen;
var_dump(strlen('foo bar baz'));
echo "Done\n";
?>
--EXPECT--
int(4)
Done