#22495 [NEW]: namespaces cause 'internal compiler error' on includes

From: Date: Sat, 01 Mar 2003 19:36:43 +0000
Subject: #22495 [NEW]: namespaces cause 'internal compiler error' on includes
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-34591@lists.php.net to get a copy of this message
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

« previous php.bugs (#34591) next »