Well, that should be the case, but:
halojoy;11054391 wrote:The error was that it returned 'db_.php'
Where the second code returns 'db_mysql.php'
so the part within curly brackets returned nothing.
That is at my PHP 5.6.19
So I'm not at all sure about this; AAMOF I can easily construct a test which duplicates the issue:
define('MYBB_ROOT',"/home/");
$database = array("type"=>"mysql");
$config = array($database); //should be "$config = array("database"=>$database);"
echo MYBB_ROOT."inc/db_{$config[database]['type']}.php";
However, the $config var isn't really constructed correctly in my example, which makes me wonder if my_bb has the same problem?
halojoy, what does "print_r($config);" show?