mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
25 lines
327 B
Plaintext
25 lines
327 B
Plaintext
|
--TEST--
|
||
|
069: Include inside namespaced method
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
namespace foo;
|
||
|
|
||
|
class Test {
|
||
|
static function f() {
|
||
|
var_dump((binary)__NAMESPACE__);
|
||
|
include __DIR__ . '/ns_069.inc';
|
||
|
var_dump((binary)__NAMESPACE__);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Test::f();
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
string(3) "foo"
|
||
|
string(0) ""
|
||
|
string(3) "foo"
|
||
|
===DONE===
|