[php-src] Issue #25131: CLI build in server crashes with repeated headers and `-DZEND_RC_DEBUG=1`

From: Date: Sun, 01 Nov 2026 17:35:12 +0000
Subject: [php-src] Issue #25131: CLI build in server crashes with repeated headers and `-DZEND_RC_DEBUG=1`
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-253975@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/25131 Author: DanielEScherzer See analysis on #23698, this is causing some nightly tests to fail With index.php ```php <?php echo "Testing\n"; ``` I got ``` root@3b54b073fb19:/var/www/html/repeated-headers# /usr/src/php86/sapi/cli/php -d error_include_args=0 -t /var/www/html/repeated-headers/ -n -S localhost:0 [Sun Nov 1 17:32:00 2026] PHP 8.6.0-dev Development Server (http://localhost:33929) started [Sun Nov 1 17:32:08 2026] [::1]:53820 Accepted [Sun Nov 1 17:32:08 2026] [::1]:53820 [200]: GET / [Sun Nov 1 17:32:08 2026] [::1]:53820 Closing php: /usr/src/php86/Zend/zend_types.h:849: uint32_t zend_gc_delref(zend_refcounted_h *): Assertion `(zval_gc_flags((p)->u.type_info) & ((1<<7)|(1<<8))) != (1<<7)' failed. Aborted (core dumped) ``` when another shell ran ``` root@3b54b073fb19:/var/www/html# curl -H "Cookie: Foo" -H "cOOKIE: Bar" http://localhost:33929 Testing ``` Tested against PHP 8.6.0-dev @ 8661547102c7f23cd38b2b640308583596528ff6

« previous php.bugs (#253975) next »