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

Maximum nesting level reached #462

Closed
YLivay opened this issue Jan 16, 2017 · 2 comments
Closed

Maximum nesting level reached #462

YLivay opened this issue Jan 16, 2017 · 2 comments

Comments

@YLivay
Copy link

YLivay commented Jan 16, 2017

Heya!

We have weird users submitting weird strings - and one of them triggered a fatal error for "Maximum function nesting level of X reached, aborting!"

There isn't a way to catch and handle the error or detect it before starting to parse so I'm hoping Parsedown could have a fail-safe in that case that'll allow us to choose how to handle these cases.

The string is:
_________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________.EXE

I suggest tracking the depth when parsing inner elements and being able to specify a limit before parsing. Optionally, just before the limit is reached it could use another option to tell it what to do: either throw an exception or attach the raw, unparsed inner element.

By the way, really appreciate your work on this lib! We've been using it for quite a while now and it's been mostly good to us :)

@aidantwoods
Copy link
Collaborator

Does this issue still occur for you? I can't replicate it locally
screen shot 2018-03-28 at 03 00 29

@cebe
Copy link
Contributor

cebe commented Apr 5, 2018

Maximum function nesting level of X reached, aborting!

sounds like you have xdebug enabled. There is no such limit if you do not use xdebug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants