Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xdebug has detected a possible infinite loop - problem with latest, not with 3.4.1 #3642

Closed
oleibman opened this issue Jan 26, 2024 · 4 comments

Comments

@oleibman
Copy link

We issued a new release and the documentation was generated without a problem. I believe the install used phpDocumentor 3.4.1 to generate the documentation. I realized that my local version was long out of date, so I downloaded the latest phar version (3.4.3), and this did report a problem (so the problem seems to have been introduced by 3.4.2 or 3.4.3):

[alert]   Unable to parse file "PhpSpreadsheet/src/PhpSpreadsheet/Writer/Xlsx/FunctionPrefix.php", an error was detected: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames

Expected behavior

Produce documentation for all members including FunctionPrefix.php.

Actual behavior

Documentation is produced for all members except FunctionPrefix.php, which instead outputs the error message above.

Steps to reproduce the problem

  1. php phpDocumentor.phar run -d PhpSpreadsheet/src/PhpSpreadsheet/Writer/Xlsx/FunctionPrefix.php -t docs

Your environment

@phpdoc-bot phpdoc-bot added this to Needs triage in phpDoc issue triage board Jan 26, 2024
@jaapio
Copy link
Member

jaapio commented Jan 26, 2024

We moved away from a cached service container because we are working on support for extensions. I expect this is the causing the issue.

Raising the value on xdebug will solve this issue as the service container has more nesting than 256 layers.

@oleibman
Copy link
Author

Sorry to be obtuse - raising what value on xdebug?

@jaapio
Copy link
Member

jaapio commented Jan 26, 2024

https://xdebug.org/docs/all_settings#max_nesting_level

This is most-likely causing the issue/

@oleibman
Copy link
Author

Thank you. Before I had received your reply, I tried php -d xdebug.mode=off ..., and that eliminated the error. This was needed locally for 3.4.3, but also for 3.4.1 (so my initial report that 3.4.1 was okay was wrong). I will keep your suggestion on nesting level in mind, but, for now, this will do.

phpDoc issue triage board automation moved this from Needs triage to Closed Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants