Skip to content

Commit 4117063

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix GH-8310: Registry settings are no longer recognized
2 parents d03a94a + 1bd9890 commit 4117063

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,7 +2489,7 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file)
24892489

24902490
#ifdef PHP_WIN32
24912491
if(primary_file->filename) {
2492-
UpdateIniFromRegistry((char*)primary_file->filename);
2492+
UpdateIniFromRegistry(ZSTR_VAL(primary_file->filename));
24932493
}
24942494
#endif
24952495

@@ -2581,7 +2581,7 @@ PHPAPI int php_execute_simple_script(zend_file_handle *primary_file, zval *ret)
25812581
zend_try {
25822582
#ifdef PHP_WIN32
25832583
if(primary_file->filename) {
2584-
UpdateIniFromRegistry((char*)primary_file->filename);
2584+
UpdateIniFromRegistry(ZSTR_VAL(primary_file->filename));
25852585
}
25862586
#endif
25872587

0 commit comments

Comments
 (0)