#22495 [Opn->Bgs]: namespaces cause 'internal compiler error' on includes
| From: | iliaa@php.net | Date: | Wed, 11 Jun 2003 00:18:30 +0000 |
| Subject: | #22495 [Opn->Bgs]: namespaces cause 'internal compiler error' on includes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-41646@lists.php.net to get a copy of this message | ||
ID: 22495
Updated by: iliaa@php.net
Reported By: andrew at evilwalrus dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: WinXP
PHP Version: 5CVS-2003-03-01 (dev)
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
namespaces were removed from php5
Previous Comments:
------------------------------------------------------------------------
[2003-04-18 20:22:12] thekid at thekid dot de
No compiler error here, but this actually won't work anyway.
require_once is nothing like "inline" or "#define" in C. It is not as
if code was simply at this place instead of in the file:)
------------------------------------------------------------------------
[2003-03-01 13:38:45] andrew at evilwalrus dot com
Also, adding $this->baz to _debug() does not help.
------------------------------------------------------------------------
[2003-03-01 13:36:43] andrew at evilwalrus dot com
The following script(s) cause an internal compiler error:
----------------- foo.php -----------------
<?php
namespace foo
{
class bar
{
function __construct()
{
require_once 'include.php';
}
function _debug()
{
print $baz;
}
}
}
$foo = new foo::bar();
$foo->_debug();
?>
----------------- include.php -----------------
<?php
function fakefunc()
{
$baz = 'I am foobar!';
}
?>
-----------------------------------------------
Running foo.php via CLI causes the following fatal error to occur:
*Fatal error: Internal compiler error. Please report! in include.php
on line 6*
Running the script without the 'foo' namespace simply outputs a blank
line to the console, with no text returned, and no error generated.
~ Andrew Heebner
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22495&edit=1