Skip to content

IniFileLoader failes to parse ini #15

Description

@tiborb

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?

Activity

  1. reopened this on Apr 27, 2016
  2. tiborb commented on Apr 27, 2016

    @tiborb
    Author

    Parsing does not work if booleans are rendered as integers.

  3. modified the milestone: v0.3 on Apr 27, 2016
  4. sagikazarmark commented on Apr 27, 2016

    @sagikazarmark
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions