Commit 74d9f534e18 for php
commit 74d9f534e18ff7e0c2e7e2ca1db5a94e7a75be50
Author: Gina Peter Banyard <girgias@php.net>
Date: Sun Nov 22 04:09:07 2026 +0000
streams: use zend_result return type for php_stream_parse_fopen_modes
diff --git a/main/streams/php_stream_plain_wrapper.h b/main/streams/php_stream_plain_wrapper.h
index aa74859c11e..374bee90ef9 100644
--- a/main/streams/php_stream_plain_wrapper.h
+++ b/main/streams/php_stream_plain_wrapper.h
@@ -46,6 +46,6 @@ PHPAPI FILE * _php_stream_open_wrapper_as_file(char * path, char * mode, int opt
#define php_stream_open_wrapper_as_file(path, mode, options, opened_path) _php_stream_open_wrapper_as_file((path), (mode), (options), (opened_path) STREAMS_CC)
/* parse standard "fopen" modes into open() flags */
-PHPAPI int php_stream_parse_fopen_modes(const char *mode, int *open_flags);
+PHPAPI zend_result php_stream_parse_fopen_modes(const char *mode, int *open_flags);
END_EXTERN_C()
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c
index 24427b41b69..ccf38ca0d54 100644
--- a/main/streams/plain_wrapper.c
+++ b/main/streams/plain_wrapper.c
@@ -71,7 +71,7 @@ extern int php_get_gid_by_name(const char *name, gid_t *gid);
#endif
/* parse standard "fopen" modes into open() flags */
-PHPAPI int php_stream_parse_fopen_modes(const char *mode, int *open_flags)
+PHPAPI zend_result php_stream_parse_fopen_modes(const char *mode, int *open_flags)
{
int flags;