Skip to content

Commit 0fa9afb

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Fix GH-10052: Browscap crashes PHP 8.1.12 on request shutdown (apache2)
2 parents 6879c98 + 64bb3ef commit 0fa9afb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/browscap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ static int browscap_read_file(char *filename, browser_data *browdata, int persis
432432
ctx.current_section_name = NULL;
433433
zend_hash_init(&ctx.str_interned, 8, NULL, str_interned_dtor, persistent);
434434

435-
zend_parse_ini_file(&fh, 1, ZEND_INI_SCANNER_RAW,
435+
zend_parse_ini_file(&fh, persistent, ZEND_INI_SCANNER_RAW,
436436
(zend_ini_parser_cb_t) php_browscap_parser_cb, &ctx);
437437

438438
/* Destroy parser context */

0 commit comments

Comments
 (0)