-
-
Notifications
You must be signed in to change notification settings - Fork 161
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
Broken Function: array_walk_recursive (and more likely others) when using argument reference in callback function #621
Labels
bug
Something isn't working
Comments
shish
added a commit
that referenced
this issue
Feb 17, 2025
shish
added a commit
that referenced
this issue
Feb 17, 2025
That seems like a correct diagnosis to me, looks like we'll need to generate full functions even in the no-op case D: #622 adds this as a test case, now to start working on the actual fix... |
Thank you |
shish
added a commit
that referenced
this issue
Feb 17, 2025
shish
added a commit
that referenced
this issue
Feb 17, 2025
The minimalist pass-through stubs we used originally would sometimes behave differently and not actually pass things through as intended D:
shish
added a commit
that referenced
this issue
Feb 17, 2025
The minimalist pass-through stubs we used originally would sometimes behave differently and not actually pass things through as intended D:
shish
added a commit
that referenced
this issue
Feb 17, 2025
The minimalist pass-through stubs we used originally would sometimes behave differently and not actually pass things through as intended D:
@shish thank you very much for fixing that so quickly, you're the boss 😎 Any chances to release that in near future? |
3.0.1 is released now :) |
Thank you 💪 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Function URL
https://www.php.net/manual/en/function.array-walk-recursive.php
PHP Version
8.4
Safe Version
3.0.0
Description
Hello,
I noticed that passing argument by reference in
array_walk_recursive
doesn't work correctly with PHP 8.4 (like it worked with PHP 8.3).Example:
The reason is probably because different way of wrapping it between PHP versions:
Using
func_get_args()
probably doesn't handle reference as expected, so other wrapped functions in this way may be also affected.The text was updated successfully, but these errors were encountered: