mirror of
https://github.com/php/php-src.git
synced 2024-10-17 22:42:38 +00:00
16 lines
273 B
Plaintext
16 lines
273 B
Plaintext
|
--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: Call to undefined method Exception::bar() in %sns_038.php on line 7
|
||
|
|