[php-src] Issue #8418: The influence of opcache on the behavior of enum cases.
| From: | nikic | Date: | Sun, 24 Apr 2022 15:48:03 +0000 |
| Subject: | [php-src] Issue #8418: The influence of opcache on the behavior of enum cases. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-241218@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/8418
Comment Author: nikic
Making this actually work requires #8190, i.e. support for evaluating the constant expression at
runtime. It's not technically possible to evaluate a constant reference at compile-time if
opcache is used (in the general case where the constant is defined in a different file). The only
thing we can do in a patch release is to consistently forbid this.