[php-src] PR #21570: Conditionally include zend_attributes.h to arginfo based on usage

From: Date: Sun, 29 Mar 2026 11:47:04 +0000
Subject: [php-src] PR #21570: Conditionally include zend_attributes.h to arginfo based on usage
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35428@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21570 Author: dkulyk Conditionally include zend_attributes.h only when attributes are actually used. Currently, zend_attributes.h must be explicitly included in C source files even when only common attributes (e.g. #[\Deprecated]) are needed. This introduces unnecessary coupling between extensions and attribute internals. This change removes the requirement to manually include the header for common attributes, reducing boilerplate and avoiding unnecessary dependencies. It does not affect behavior or runtime — only improves developer ergonomics and compilation dependencies.

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