[php-src] PR #20898: zend_API: Add Z_PARAM_ENUM_NAME()
| From: | TimWolla | Date: | Sat, 10 Jan 2026 17:10:49 +0000 |
| Subject: | [php-src] PR #20898: zend_API: Add Z_PARAM_ENUM_NAME() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34504@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20898
Author: TimWolla
It is becoming increasingly common to have enum parameters on internal functions. Manually turning
the singleton enum object into the case name is verbose, especially for optional parameters.
Add a new
Z_PARAM_ENUM_NAME() helper to directly retrieve the case name.