Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IniFileLoader failes to parse ini #15

Open
tiborb opened this issue Apr 27, 2016 · 2 comments
Open

IniFileLoader failes to parse ini #15

tiborb opened this issue Apr 27, 2016 · 2 comments
Labels
Milestone

Comments

@tiborb
Copy link

tiborb commented Apr 27, 2016

The ini file loader IniFileLoader, failes to parse the following file.

[program:FOOBAR2]
command = /vagrant/app/console rabbitmq:dynamic-consumer something customer#FOOBAR2 --env=prod
numprocs = 1
autostart = 0
autorestart = 0

Used code:

$filesystem = new Filesystem(new Adapter\Local(dirname($this->confFile)));

$loader = new IniFileLoader($filesystem, basename($this->confFile));

$configuration = $loader->load(); // throws: The option "autostart" with value 0 is expected to be of type "bool", but is of type "integer".

$this->confFile is the path to the file.

Am I wrong or the ini file parser cannot handle the program sections?

@tiborb tiborb closed this as completed Apr 27, 2016
@tiborb tiborb reopened this Apr 27, 2016
@tiborb
Copy link
Author

tiborb commented Apr 27, 2016

Parsing does not work if booleans are rendered as integers.

@sagikazarmark sagikazarmark modified the milestone: v0.3 Apr 27, 2016
@sagikazarmark
Copy link
Contributor

I think #12 is related here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants