[php-src] PR #21085: Remove duplicate #include statements

From: Date: Thu, 29 Jan 2026 19:39:33 +0000
Subject: [php-src] PR #21085: Remove duplicate #include statements
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-34717@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21085 Author: khaledalam ## Description Remove 28 duplicate #include statements from 21 files across the codebase. ## Motivation - Improves code clarity by removing visual noise - Makes dependency graphs cleaner for static analysis tools - Aligns with coding standards for maintainable code ## Compile-Time Impact Removes 28 redundant file lookups and preprocessor guard evaluations during compilation. ## Changes | Directory | Files Modified | |-----------|----------------| | Zend/ | 3 | | main/ | 2 | | sapi/ | 12 | | ext/ | 4 | ### Notable duplicates removed: - php.h, php_globals.h in SAPI files - zend_vm_opcodes.h in zend_compile.h - http_core.h in apache2handler (3 files) - <sys/types.h> in multiple wrappers ## Notes - All removed includes were true duplicates (unconditional, same file) - Excludes intentional duplicates in #if/#elif branches - No functional changes - include guards already prevented reprocessing

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