Skip to content

[DomCrawler] Namespace-Prefixes with null value cached but not found #39277

Closed
@simonberger

Description

@simonberger

Symfony version affected: 5.x-dev

Description
In #39097 namespace caching has been added. Not found namespaces (prefix with namespace-value null) are cached but this value is not found in

if (isset($this->namespaces[$prefix])) {

Possible Solution
Change cache check or do not cache null values anymore (performance hit in edge cases).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions