summaryrefslogtreecommitdiff
path: root/Zend/tests/ns_038.phpt
blob: 1cf824b4cb0872b1a5eb2b5156c1d3d7351052a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
038: Name ambiguity (namespace name or internal class name)
--FILE--
<?php
namespace Exception;
function foo() {
  echo "ok\n";
}
\Exception\foo();
\Exception::bar();
--EXPECTF--
ok

Fatal error: Uncaught Error: Call to undefined method Exception::bar() in %s:%d
Stack trace:
#0 {main}
  thrown in %sns_038.php on line 7