INI data looks like this:
[datasources]
live.dsn = "mysql:host=localhost;dbname=main"
live.user = "root"
live.pass =
I'm using parse_ini_file()
.
- with
INI_SCANNER_RAW
live.dsn
is parsed incorrectly ("mysql:host
) - with
INI_SCANNER_NORMAL
the value oflive.dsn
is correct
But I can't use INI_SCANNER_NORMAL
because then it will also replace constants, "on" with 1
and so on (don't want that)... Is there any fix or do I have to create my own parser?
I'm using PHP 5.3.