8000 Stuck in a loop · Issue #25774 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Stuck in a loop #25774
Closed
Closed
@Nyholm

Description

@Nyholm
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version v4.0.3

I got a use case where Im stuck in this loop:

https://github.com/symfony/symfony/blob/v4.0.3/src/Symfony/Component/Debug/ErrorHandler.php#L567-L576

$handler = self::$reservedMemory = null;
        $handlers = array();
        while (!is_array($handler) || !$handler[0] instanceof self) {
            $handler = set_exception_handler('var_dump');
            restore_exception_handler();
            if (!$handler) {
                break;
            }
            restore_exception_handler();
            array_unshift($handlers, $handler);
        }

For each iteration I the $handlers array get one more item in the array. The item is "newrelic_exception_handler".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0