From 5544a77f770f081224cb0fa426fc8020e6220223 Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 3 Mar 2025 20:22:35 +0000 Subject: [PATCH] Move definition of php_le_stream_context From ext/standard/file.h to main/streams/php_stream_context.h This reduces some dependency of main/ on ext/standard --- ext/standard/file.h | 1 - main/streams/php_stream_context.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/file.h b/ext/standard/file.h index 3a9cf1435b1..f8faebd0282 100644 --- a/ext/standard/file.h +++ b/ext/standard/file.h @@ -36,7 +36,6 @@ PHPAPI PHP_FUNCTION(fpassthru); PHP_MINIT_FUNCTION(user_streams); -PHPAPI int php_le_stream_context(void); PHPAPI zend_result php_copy_file(const char *src, const char *dest); PHPAPI zend_result php_copy_file_ex(const char *src, const char *dest, int src_flags); PHPAPI zend_result php_copy_file_ctx(const char *src, const char *dest, int src_flags, php_stream_context *ctx); diff --git a/main/streams/php_stream_context.h b/main/streams/php_stream_context.h index d4ebe29bc16..677bf14befe 100644 --- a/main/streams/php_stream_context.h +++ b/main/streams/php_stream_context.h @@ -53,6 +53,7 @@ struct _php_stream_context { }; BEGIN_EXTERN_C() +PHPAPI int php_le_stream_context(void); PHPAPI void php_stream_context_free(php_stream_context *context); PHPAPI php_stream_context *php_stream_context_alloc(void); PHPAPI zval *php_stream_context_get_option(php_stream_context *context,