[php-src] master: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Mon, 26 Oct 2026 18:24:28 +0000
Subject: [php-src] master: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142756@lists.php.net to get a copy of this message
Author: ndossche (ndossche) Date: 2026-10-26T19:24:16+01:00 Commit: https://github.com/php/php-src/commit/aad226626291bda1dfd92e342b101accf49e3abc Raw diff: https://github.com/php/php-src/commit/aad226626291bda1dfd92e342b101accf49e3abc.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: Fix GH-24697: cli: passing PHP_HTTP_PARSER_STRICT build option doesn't work Changed paths: M NEWS M sapi/cli/php_http_parser.c M sapi/cli/php_http_parser.h Diff: diff --git a/NEWS b/NEWS index 2fb4c542850f..c39ee8dc594c 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,10 @@ PHP NEWS . Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203). +- CLI: + . Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work). + (ndossche, devnexen) + - DBA: . Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open). (Girgias) diff --git a/sapi/cli/php_http_parser.c b/sapi/cli/php_http_parser.c index 6d548ac1ec58..b8c6748067e2 100644 --- a/sapi/cli/php_http_parser.c +++ b/sapi/cli/php_http_parser.c @@ -250,7 +250,7 @@ enum flags #define start_state (parser->type == PHP_HTTP_REQUEST ? s_start_req : s_start_res) -#ifdef HTTP_PARSER_STRICT +#if HTTP_PARSER_STRICT # define STRICT_CHECK(cond) if (cond) goto error # define NEW_MESSAGE() (http_should_keep_alive(parser) ? start_state : s_dead) #else diff --git a/sapi/cli/php_http_parser.h b/sapi/cli/php_http_parser.h index d7006b6d04d7..b5d9099f16c8 100644 --- a/sapi/cli/php_http_parser.h +++ b/sapi/cli/php_http_parser.h @@ -36,12 +36,10 @@ extern "C" { #include <stdint.h> -/* Compile with -DPHP_HTTP_PARSER_STRICT=0 to make less checks, but run - * faster +/* Compile with -DPHP_HTTP_PARSER_STRICT=1 to enable more checks, but run + * slower */ #ifndef PHP_HTTP_PARSER_STRICT -# define PHP_HTTP_PARSER_STRICT 1 -#else # define PHP_HTTP_PARSER_STRICT 0 #endif

« previous php.cvs (#142756) next »