mirror of
https://github.com/php/php-src.git
synced 2024-12-18 14:30:35 +08:00
12 lines
303 B
PHP
12 lines
303 B
PHP
--TEST--
|
|
004: Using global class name from namespace (unqualified - fail)
|
|
--FILE--
|
|
<?php
|
|
namespace test\ns1;
|
|
|
|
echo get_class(new Exception()),"\n";
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Class 'test\ns1\Exception' not found in %sns_004.php:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %sns_004.php on line %d |