Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

main/streams: Move definitions to reduce ext/standard dependency and add new API #18097

Merged
merged 3 commits into from
Mar 30, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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
  • Loading branch information
Girgias committed Mar 17, 2025
commit 90c1b826c1bff7722f69de49ca6a5afd5f8d52b5
1 change: 0 additions & 1 deletion ext/standard/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions main/streams/php_stream_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down