1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/Zend/tests/use_const/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

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