Skip to content

Bug creating a store that doesn't exist, where the parent namespace does exist #57

@g105b

Description

@g105b
$store = $session->getStore("some.long.namespace.storename", true);

The true in the example above means that if the session store that is being requested doesn't exist, it should be created. This works fine until an element of the namespace does already exist. The create-if-not-exists flag is not passed down to deeper namespaces.

Looks like the error exists here:

https://github.com/PhpGt/Session/blob/3e42dcda4aa053c999dc8bb0a83d32cc8c3854d5/src/SessionStore.php#L89

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions