Skip to content

Boolean environment variable values specified in XML get mangled #2331

Closed
@mfn

Description

@mfn

An environment variable with the string value value="false" or value="true" ends up as value "" or "1" in the environment.

Example:

...
<php>
  <env name="foo" value="false"/>
  <env name="bar" value="true"/>
</php>
...

In the environment, retrieved via getenv:

  • foo will have the value `` (i.e. empty)
  • bar will have the value 1 (string)

I would expected that both values retain the string representation from the XML file, i.e. "false" and "true".

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions