summaryrefslogtreecommitdiff
path: root/Zend/tests/use_const/no_global_fallback.phpt
blob: 3adebd68f55dee2b7d7a490806b2dc507d624ef4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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: Uncaught Error: Undefined constant 'foo\bar\baz' in %s:%d
Stack trace:
#0 {main}
  thrown in %s on line %d