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 + set_time_limit + Safe => Exception #443

Open
josefsabl opened this issue Apr 24, 2024 · 1 comment
Open

xdebug + set_time_limit + Safe => Exception #443

josefsabl opened this issue Apr 24, 2024 · 1 comment

Comments

@josefsabl
Copy link

Hello, this objectively is not a fault of Safe but I am wondering if this could/should be solved on Safe's side.

The problem is, that when xdebug extension is enabled. The set_time_limit returns false even if it was successful. Safe\set_time_limit then converts this false into exception that crashes the application.

It is annoying when debugging and I run into this several times a week.

Maybe this weird edge case could be handled and the false from this function could be ignored when xdebug is enabled.

Obviously there is a workaround to temporarily comment out the Safe/set_time_limit calls or not use them at all.

@theofidry
Copy link

Shouldn't it be rather reported to Xdebug as a bug?

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

No branches or pull requests

2 participants