Skip to content

Commit 373809c

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: ext/curl/interface: fix zend_result return value Zend/zend_ini: fix zend_result return values
2 parents 2f65da0 + f6ec807 commit 373809c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zend/zend_ini.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
6363
}
6464
if (stage == ZEND_INI_STAGE_RUNTIME && result == FAILURE) {
6565
/* runtime failure is OK */
66-
return 1;
66+
return FAILURE;
6767
}
6868
if (ini_entry->value != ini_entry->orig_value) {
6969
zend_string_release(ini_entry->value);
@@ -74,7 +74,7 @@ static zend_result zend_restore_ini_entry_cb(zend_ini_entry *ini_entry, int stag
7474
ini_entry->orig_value = NULL;
7575
ini_entry->orig_modifiable = 0;
7676
}
77-
return 0;
77+
return SUCCESS;
7878
}
7979
/* }}} */
8080

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,7 +1378,7 @@ static inline zend_result build_mime_structure_from_hash(php_curl *ch, zval *zpo
13781378
postval = Z_STR_P(prop);
13791379

13801380
if (php_check_open_basedir(ZSTR_VAL(postval))) {
1381-
return 1;
1381+
return FAILURE;
13821382
}
13831383

13841384
prop = zend_read_property(curl_CURLFile_class, Z_OBJ_P(current), "mime", sizeof("mime")-1, 0, &rv);

0 commit comments

Comments
 (0)