-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Exception in combination with Xdebug #1930
Comments
The issue is most likely present in 3.0.20 but in 3.0.20 you were probably using the GMP engine without realizing it whereas due to a bug (which 37c6f52 introduced). Anyway, can you give me some code that reproduces the problem? I tried to do Once I have code that duplicates the issue I'll add a unit test for the issue. |
Hi, since the update to 3.0.21 i get an annoying exception in combination with xdebug in trace mode:
The exception is:
But I think that this is just a symptom. The problematic code is here:
With an empty $vals array or $vals = [0] this loop runs endlessly. It's pretty dirty:
https://3v4l.org/nRKVu#v8.1.22
For testing I changed this line to:
I have no idea, why this error occurs with "mode = trace" only. Next I have no Idea why the exception occurs at all. I do not use phpseclib directly, but it is part of the jumbojett/openid-connect-php bundle. But with version 3.0.20 I get no exception. This is quite strange, since the corresponding passage is exactly the same.
At the moment i solve the problem by setting the version fix to 3.0.20. But obviously I'm not happy about that. Any ideas?
The text was updated successfully, but these errors were encountered: