Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_language_parser.y
| From: | Sebastian Bergmann | Date: | Thu, 27 Mar 2003 06:38:13 +0000 |
| Subject: | Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_execute.c zend_language_parser.y | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-359@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Also refine namespaced includes
This seems not to work the way I expected:
TestCase.php
1 <?php
2 namespace PEAR:PHPUnit {
3 class TestCase {
4 }
5 }
6 ?>
FooTest.php
1 <?php
2 require 'TestCase.php';
3
4 class FooTest extends PEAR:PHPUnit::TestCase {
5 }
6 ?>
CLI.php
1 <?php
2 namespace PEAR:PHPUnit {
3 class CLI {
4 public static function main() {
5 include 'FooTest.php';
6 $o = new FooTest;
7 }
8 }
9 }
10
11 PEAR:PHPUnit::CLI::main();
12 ?>
E:\>php cli.php
Fatal error: Class 'footest' not found in E:\cli.php on line 6
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/