[php-src] master: streams: use zend_result return type for php_stream_parse_fopen_modes
| From: | Gina Peter Banyard | Date: | Sun, 22 Nov 2026 04:11:38 +0000 |
| Subject: | [php-src] master: streams: use zend_result return type for php_stream_parse_fopen_modes | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-144014@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-11-22T04:11:22Z
Commit: https://github.com/php/php-src/commit/74d9f534e18ff7e0c2e7e2ca1db5a94e7a75be50
Raw diff: https://github.com/php/php-src/commit/74d9f534e18ff7e0c2e7e2ca1db5a94e7a75be50.diff
streams: use zend_result return type for php_stream_parse_fopen_modes
Changed paths:
M main/streams/php_stream_plain_wrapper.h
M main/streams/plain_wrapper.c
Diff:
diff --git a/main/streams/php_stream_plain_wrapper.h b/main/streams/php_stream_plain_wrapper.h
index aa74859c11e5..374bee90ef9e 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 24427b41b690..ccf38ca0d543 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;