|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-01 13:38 UTC] andrew at evilwalrus dot com
[2003-04-18 20:22 UTC] thekid at thekid dot de
[2003-06-10 19:18 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 12:00:01 2025 UTC |
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