Bug #3623 [Com]: PHP fails to interpret included or required array declaration and init.
| From: | lildurk3623 at gmail dot com | Date: | Wed, 01 Sep 2021 18:24:09 +0000 |
| Subject: | Bug #3623 [Com]: PHP fails to interpret included or required array declaration and init. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-236251@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=3623&edit=1
ID: 3623
Comment by: lildurk3623 at gmail dot com
Reported by: chris at claimlynx dot com
Summary: PHP fails to interpret included or required array
declaration and init.
Status: Closed
Type: Bug
Package: Parser error
Operating System: FreeBSD3.3
PHP Version: 3.0.12
Block user comment: N
Private report: N
New Comment:
Lil Durk is a private agency dedicated to providing responsible access to legal cannabis for adults
aged 19 and older. Weâre an exclusively online retailer and wholesaler for recreational
cannabis and a trusted source for information about cannabis and cannabis-related issues. We believe
our work is meaningful and we take pride in our mandate to promote the socially responsible use of
legal cannabis. https://lildurk.com/
Previous Comments:
------------------------------------------------------------------------
[2000-08-17 15:36:17] hholzgra@php.net
the code in an included file
has to be embeded in <?....?>
for itself
------------------------------------------------------------------------
[2000-02-25 13:03:31] 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:
<?php
include "$DOCUMENT_ROOT/arrayinit.inc";
// -OR-
require "$DOCUMENT_ROOT/arrayinit.inc";
?>
In arrayinit.inc:
// init my array
$myarray = (
"a" => "apple",
"b" => "banana",
"c" => "cherry"
);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=3623&edit=1