summaryrefslogtreecommitdiff
path: root/main/php_streams.h
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-05-14 06:10:04 +0000
committerSara Golemon <pollita@php.net>2003-05-14 06:10:04 +0000
commit5126fbe556a4e4fa5f48b6d5ca63395688faf3bc (patch)
treef1e1052d04dcdebfe42fe0137e4b0d1a04d0c214 /main/php_streams.h
parentf1679e402774edaa2f465701b0ac22f69347c4a7 (diff)
downloadphp-git-5126fbe556a4e4fa5f48b6d5ca63395688faf3bc.tar.gz
Setup unlink() method in wrapper_ops structure, implement unlink in plainfiles wrapper, explicitly set method NULL in other wrappers (for now), and rewrite unlink userland function to call into wrapper_ops
Diffstat (limited to 'main/php_streams.h')
-rwxr-xr-xmain/php_streams.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/php_streams.h b/main/php_streams.h
index 9d06932aab..72638379b6 100755
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -145,6 +145,9 @@ typedef struct _php_stream_wrapper_ops {
int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
const char *label;
+
+ /* delete a file */
+ int (*unlink)(php_stream_wrapper *wrapper, char *url, php_stream_context *context TSRMLS_DC);
} php_stream_wrapper_ops;
struct _php_stream_wrapper {