[php-src] PR #20917: Generate C enums from internal enums, introduce Z_PARAM_ENUM()

From: Date: Mon, 12 Jan 2026 19:16:42 +0000
Subject: [php-src] PR #20917: Generate C enums from internal enums, introduce Z_PARAM_ENUM()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34528@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20917 Author: arnaud-lb Update gen_stubs.php to generate C enums from internal enums. Enum values can be compared to the result of zend_enum_fetch_case_id(zend_object*). The generated enums are added to separate files named {$extensionName}_decl.h (one for each extension declaring some enums), so that it's possible to include these from anywhere. _arginfo.h files would generate warnings if we tried to include them in a compilation unit that doesn't call the register_{$class} functions, for instance. Introduce Z_PARAM_ENUM() (similarly to https://github.com/php/php-src/pull/20898). cc @TimWolla

« previous php.git-pulls (#34528) next »