xref: /PHP-8.2/Zend/tests/ns_038.phpt (revision 7aacc705)
1--TEST--
2038: Name ambiguity (namespace name or internal class name)
3--FILE--
4<?php
5namespace Exception;
6function foo() {
7  echo "ok\n";
8}
9\Exception\foo();
10\Exception::bar();
11?>
12--EXPECTF--
13ok
14
15Fatal error: Uncaught Error: Call to undefined method Exception::bar() in %s:%d
16Stack trace:
17#0 {main}
18  thrown in %sns_038.php on line 7
19