Skip to content

Raw byte string in phpdotenv? #587

@Trung0246

Description

@Trung0246

I have something like this but currently phpdotenv rejected the string and upon searching other issues it's always the same solution of just escaping , but \xFF needed to load raw byte. Can phpdotenv somehow support this without extra step of encoding to something else first (like base64)?

EXAMPLE="\xa6\x54\x9e\xe2\x9e\x82\x1f\xc5\x26\x19\x82\x03\x90\xb4\x29\xf1\x25\xdd\xc4\x9c\x20\x1e\x6d\xac\xa1\x7a\x94\x87\xde\xca\x1b\x59"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions