Skip to content

[RFC] [4.0] Behaviour of nested variables #378

Closed

Description

@GrahamCampbell

There is no way to write a dollar sign without phpdotenv trying to evaluate it as a variable. This is fine, so long as you don't actually have a variable of that name, but will cause problems otherwise. Should we:

  1. Move evaluation of nested variables to the parser, or at least have some more intelligent way of the parser to produce output so that its clear what variables are fair game for replacement.
  2. Only allow variable evaluation within double quoted strings?
  3. Add a way to prevent variable evaluation with an escape sequence?

Both 2 and 3 depend on 1.

Activity

  1. GrahamCampbell commented on Nov 4, 2019

    @GrahamCampbell
    CollaboratorAuthor

    Should we aim for closer feature parity with bash and/or docker env files?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions