mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
7aacc705d0
Closes GH-5958
19 lines
333 B
PHP
19 lines
333 B
PHP
--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
|