[php-src] PR #25539: Fix GH-25538: master doesn't build with GCC 15 (ZEND_ATTRIBUTE_DEPRECATED after PHPAPI)

From: Date: Tue, 17 Nov 2026 20:31:50 +0000
Subject: [php-src] PR #25539: Fix GH-25538: master doesn't build with GCC 15 (ZEND_ATTRIBUTE_DEPRECATED after PHPAPI)
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40750@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25539 Author: ArtUkrainskiy Fixes GH-25538 With C23, ZEND_ATTRIBUTE_DEPRECATED is [[deprecated]], which has to come before the other declaration specifiers. php_session_valid_key() has it after PHPAPI, in the declaration and the definition, so master doesn't compile with GCC 15, which defaults to C23. This puts the attribute first, as the other uses in php-src do. With the change master builds with GCC 15.2 and --enable-werror, and the ext/session tests pass.

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