Skip to content

Serialization of double-linked-list of tokens breaks recursion limit #1164

Open
@darvanen

Description

@darvanen

The output of \GraphQL\Language\Parser::parse contains a tree in every 'loc' field which appears to branch forever:

image

Now, it doesn't go forever or it would crash for everyone. But get a schema large enough and it does break the recursion limit (default 4096) in unserialize() when being pulled out of cache (in Drupal).

What purpose do these endless recursive references to 'prev' and 'next' serve? Is it possible they could be limited or removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions