From: andrew at evilwalrus dot com
Operating system: WinXP
PHP version: 5CVS-2003-03-01 (dev)
PHP Bug Type: Scripting Engine problem
Bug description: namespaces cause 'internal compiler error' on includes
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 bug report at http://bugs.php.net/?id=22495&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22495&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22495&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22495&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22495&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22495&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22495&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22495&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22495&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22495&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22495&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22495&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22495&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22495&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22495&r=gnused