|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3623 PHP fails to interpret included or required array declaration and init.
Submitted: 2000-02-25 13:03 UTC Modified: 2000-08-17 15:36 UTC
From: chris at claimlynx dot com Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0.12 OS: FreeBSD3.3
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
2 + 3 = ?
Subscribe to this entry?

 [2000-02-25 13:03 UTC] chris at claimlynx dot com
Using Apache 1.3.9 module version of PHP.

In an HTML web page, the following simply displays the actual text of the PHP code instead of it being interpreted.  If included/required code is added inline in same file, it works fine.

In test.php3:
include "$DOCUMENT_ROOT/";
// -OR-
require "$DOCUMENT_ROOT/";

// init my array
$myarray = (
   "a" => "apple",
   "b" => "banana",
   "c" => "cherry"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-17 15:36 UTC]
the code in an included file
has to be embeded in <?....?>
for itself
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 05:01:28 2023 UTC