diff options
author | Sara Golemon <pollita@php.net> | 2003-12-12 23:06:42 +0000 |
---|---|---|
committer | Sara Golemon <pollita@php.net> | 2003-12-12 23:06:42 +0000 |
commit | b1f8236b63ae9ee1f3cec490f093cbb8cfff407f (patch) | |
tree | 7221777bf6d4cc433e5b9fb3503ba6123a12ee94 /main/php_streams.h | |
parent | 23afd9b166ece8553e5b154d4ea58bfeec037374 (diff) | |
download | php-git-b1f8236b63ae9ee1f3cec490f093cbb8cfff407f.tar.gz |
Route rename() via wrapper ops.
Move current rename() code to main/streams/plain_wrapper.c
Implement ftp/rename()
Implement userstreams/rename()
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-x | main/php_streams.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h index 5451b8382f..f3d2ceedcb 100755 --- a/main/php_streams.h +++ b/main/php_streams.h @@ -148,6 +148,9 @@ typedef struct _php_stream_wrapper_ops { /* delete a file */ int (*unlink)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC); + + /* rename a file */ + int (*rename)(php_stream_wrapper *wrapper, char *url_from, char *url_to, int options, php_stream_context *context TSRMLS_DC); } php_stream_wrapper_ops; struct _php_stream_wrapper { |