mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +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
215 B
PHP
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
|