Skip to content

Commit ed4dc39

Browse files
MaxKellermannGirgias
authored andcommitted
ext/curl/interface: fix zend_result return value
Closes GH-10640 Signed-off-by: George Peter Banyard <girgias@php.net>
1 parent d51eb1d commit ed4dc39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2051,7 +2051,7 @@ static inline int build_mime_structure_from_hash(php_curl *ch, zval *zpostfields
20512051
postval = Z_STR_P(prop);
20522052

20532053
if (php_check_open_basedir(ZSTR_VAL(postval))) {
2054-
return 1;
2054+
return FAILURE;
20552055
}
20562056

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

0 commit comments

Comments
 (0)