[php-src] PR #11047: Fix unevaluated rhs of class constant fetch in constant expression
| From: | iluuu1994 | Date: | Mon, 10 Apr 2023 11:22:27 +0000 |
| Subject: | [php-src] PR #11047: Fix unevaluated rhs of class constant fetch in constant expression | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-22279@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11047
Author: iluuu1994
Fixes oss-fuzz #57821
op1 and op2 should always be evaluated, even if the class constant fetch itself fails. Otherwise we
can get unexpected constant ASTs at runtime (e.g.
Foo::class). This wasn't
previously an issue because we don't allow (const_expr)::FOO in constant
expressions, and op2 was always a string.
/cc @dstogov