Skip to content

[ErrorHandler] xdebug_get_function_stack requires enabled xdebug #52634

Closed
@ro0NL

Description

@ro0NL

Symfony version(s) affected

6.3

Description

For background see sebastianbergmann/phpunit#5565

Maybe this is just a first-side effect hiding my actual issue, but in Symfony here we produce an error:

if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {

I have no name!@aa7eeb552c8e:/app$ php -r "var_dump(xdebug_get_function_stack());"
[17-Nov-2023 18:13:30 UTC] PHP Warning:  Function must be enabled in php.ini by setting 'xdebug.mode' to 'develop' in Command line code on line 1

Warning: Function must be enabled in php.ini by setting 'xdebug.mode' to 'develop' in Command line code on line 1
array(0) {
}

But we're not going to enable xdebug as per symfony/flex#936 (comment)

How to reproduce

php -r "var_dump(xdebug_get_function_stack());"

Possible Solution

No response

Additional Context

No response

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