Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Profiler goes into infinite loop under a sub-request error  #3620

Closed
@guilhermeblanco

Description

@guilhermeblanco

Hi,

I'm working on an application that heavily relies on sub-requests.
During our development stage, one of our developers made a mistake and forgot to send a variable to Twig.
The expected scenario would be an exception, but what happened was xdebug working on preventing the recursion after 200 nesting level.

It seems the PDO Profiler Storage is broken because it tries to collect the data, but token points to parent page and it enters in a recursive loop. This means $data['parent'] === $token in PdoProfilerStorage::createProfileFromData().
Unfortunately, this became a blocker for our team and we are behind the schedule, so I don't have enough time to test other drivers now.

I worked over this problem and fixed that: #3618

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