mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
*.php files are ignored by Git and a better practice might be to rename PHP included files for tests.
17 lines
214 B
PHP
17 lines
214 B
PHP
--TEST--
|
|
shadowing a global core constant with a local version
|
|
--FILE--
|
|
<?php
|
|
|
|
require 'includes/foo_php_version.inc';
|
|
|
|
use const foo\PHP_VERSION;
|
|
|
|
var_dump(PHP_VERSION);
|
|
echo "Done\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
int(42)
|
|
Done
|