[php-src] PR #18256: Zend: Add MUTABLE zend_type foreach macros and const qualifiers
| From: | Girgias | Date: | Sat, 05 Apr 2025 17:04:49 +0000 |
| Subject: | [php-src] PR #18256: Zend: Add MUTABLE zend_type foreach macros and const qualifiers | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-31328@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/18256
Author: Girgias
The motivation for this is that types should be considered immutable. The only times this is not
valid is during compilation, optimizations (opcache), or destruction.
Therefore the "normal" type foreach macros are marked to take const arguments and we add
mutable version that say so in the name. Thus add various const qualifiers to communicate intent.