在Azure中使用PHP 7和自定义.ini文件时出错

I'm trying to make a custom .ini file to store sensitive information which I can then get using parse_ini_file. However I have some problems.

Using Azure I set up an Application Setting:

Name: PHP_INI_SCAN_DIR Value: D:\home\site\ini

It shows that its loading my custom ini file in phpinfo which I named test.ini Inside that I have...

[database_info]
;Database Information
dbUser=itstheuser
dbPassword=itsthepassword

[keys]
secretKey=aSeCreTKey

Then, in my php file I have

$ini = parse_ini_file('test.ini');
echo $ini['dbUser'];

However, this returned nothing, I tried an echo after this and that echoed fine, but the ini file did not. Note: this was using PHP 5.6.

I then updated to PHP 7.0 and I get the error...

The page cannot be displayed because an internal server error has occurred.

It seems PHP 7.0 does not like my custom ini file, because when I remove the ini file the error goes away and adding it back, brings back the error. I am unsure why this is.

So my problems are basically that I can't get my custom ini file to work, is there something I'm doing wrong?