[php-src] PR #25027: Fix GH-25023: ZEND_CONTAINER_OF() fails to compile with -std=c11

From: Date: Thu, 29 Oct 2026 01:24:57 +0000
Subject: [php-src] PR #25027: Fix GH-25023: ZEND_CONTAINER_OF() fails to compile with -std=c11
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40045@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25027 Author: lazerg ZEND_CONTAINER_OF() uses typeof on the ZEND_GCC_VERSION branch, but GCC and Clang only accept that spelling in GNU mode or C23. With -std=c11/-std=c17 any extension that includes one of the headers using the macro (e.g. ext/pdo/php_pdo_driver.h) fails to build. __typeof__ works in every mode, and ZEND_IGNORE_VALUE() already uses it. Fixes #25023

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