php-src/Zend/tests/use_const/no_global_fallback.phpt
Nikita Popov e198132542 Drop addition of weird \ prefix for FQ consts
Also fixes a resolution bug
2014-06-28 18:24:59 +02:00

14 lines
254 B
PHP

--TEST--
non-existent imported constants should not be looked up in the global table
--FILE--
<?php
require 'includes/global_baz.php';
use const foo\bar\baz;
var_dump(baz);
?>
--EXPECTF--
Fatal error: Undefined constant 'foo\bar\baz' in %s on line %d