1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Files
archived-php-src/Zend/tests/ns_038.phpt
T
Máté Kocsis 7aacc705d0 Add many missing closing PHP tags to tests
Closes GH-5958
2020-08-09 22:03:36 +02:00

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