xref: /PHP-7.0/Zend/tests/ns_038.phpt (revision e97d5fab)
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--EXPECTF--
12ok
13
14Fatal error: Uncaught Error: Call to undefined method Exception::bar() in %sns_038.php:7
15Stack trace:
16#0 {main}
17  thrown in %sns_038.php on line 7
18
19