-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Arguments count should be checked prior individual argument type #15037
Comments
Thank you! I have copied over the description from the old bug tracker. @nikic's question remains unanswered:
I think I understand your point, but does the order of the checks really matter for userland developers? After all, they need to fix the function call. And for the implementation, the current way is likely the most convenient and fastest. |
Adding another check seems pointless. It would just add a slowdown for no particular reason. |
The slowdown will be very minimal. |
Is that so? |
How do you know ? |
That is my guess. I am not C developer so I cannot verify this easily. Can we run some benchmark? |
Thanks :) .. |
The way I see it, speaking for myself. Not voting yes for this, I see no benefits and surely not perf improvements. |
No feedback was provided. The issue is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so. Thank you. |
from https://bugs.php.net/bug.php?id=81595
Description
If arguments count does not match, it should be reported instead of trying to check the arguments type first.
https://3v4l.org/X53qH
Test script:
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: