This one has me stumped other than <?php should be the only thing on the first line that should had worked.
[php]<?php
$database = array(
‘default’ =>
array(
‘default’ =>
array(
‘database’ => 'XXXXX’,
‘username’ => 'XXXXXX’,
‘password’ => ‘XXXXXXXX’,
‘host’ => ‘localhost’,
‘port’ => ‘’,
‘driver’ => ‘mysql’,
‘prefix’ => ‘’,
)
)
);
$database = [
‘default’ => [
‘default’ => [
‘database’ => ‘xxxx’,
‘username’ => ‘xxxx’,
‘password’ => ‘XXXXXXXX’,
‘host’ => ‘localhost’,
‘port’ => ‘’,
‘driver’ => ‘mysql’,
‘prefix’ => ‘’
]
]
];
$database = array(
‘default’ =>
array(
‘default’ =>
array(
‘database’ => ‘XXXXX’,
‘username’ => ‘XXXXXX’,
‘password’ => ‘XXXXXXXX’,
‘host’ => ‘localhost’,
‘port’ => ‘’,
‘driver’ => ‘mysql’,
‘prefix’ => ‘’
)
)
);[/php]
I did a test script, I copied you script on top and get the error. I manually typed the one on the bottom exactly like yours no error. I even commented your script out to see if it was just getting a false positive, but it still passed with no errors. The middle is the newer way of writing arrays. I have never seen anything like this. Maybe my eyes are going and someone else can pinpoint the error? :-\ I also took the ‘s’ off of $database in the original script, but still get the error.