php-src/Zend/tests/use_const/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
215 B
PHP

--TEST--
shadowing a global core constant with a local version
--FILE--
<?php
require 'includes/foo_php_version.php';
use const foo\PHP_VERSION;
var_dump(PHP_VERSION);
echo "Done\n";
?>
--EXPECTF--
int(42)
Done