Skip to content

Commit 5544a77

Browse files
committedMar 30, 2025
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
1 parent e034b69 commit 5544a77

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
 

‎ext/standard/file.h

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ PHPAPI PHP_FUNCTION(fpassthru);
3636

3737
PHP_MINIT_FUNCTION(user_streams);
3838

39-
PHPAPI int php_le_stream_context(void);
4039
PHPAPI zend_result php_copy_file(const char *src, const char *dest);
4140
PHPAPI zend_result php_copy_file_ex(const char *src, const char *dest, int src_flags);
4241
PHPAPI zend_result php_copy_file_ctx(const char *src, const char *dest, int src_flags, php_stream_context *ctx);

‎main/streams/php_stream_context.h

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct _php_stream_context {
5353
};
5454

5555
BEGIN_EXTERN_C()
56+
PHPAPI int php_le_stream_context(void);
5657
PHPAPI void php_stream_context_free(php_stream_context *context);
5758
PHPAPI php_stream_context *php_stream_context_alloc(void);
5859
PHPAPI zval *php_stream_context_get_option(php_stream_context *context,

0 commit comments

Comments
 (0)
Please sign in to comment.