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
Fatal error: Cannot use result of built-in function in write context #12102
Labels
Comments
it seems:
compiles, but:
and
does not |
|
Even with Seems like a parser limitation. |
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
iluuu1994
added a commit
to iluuu1994/php-src
that referenced
this issue
Sep 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The following code:
repro: https://3v4l.org/E8CsC
Resulted in this output:
But I expected this output instead:
the 3v4l repro shows the issue is present only in some cases, when the same code is in non-class AST, it works
(
func_get_args()[0]
should return the 1st argument, it is simplified repro from more complex usecase)PHP Version
any
Operating System
any
The text was updated successfully, but these errors were encountered: