10.1.8 Streams Structures
10.1 API de flux les auteurs d'extensions
10 API PHP : Interface pour les extensions
Manuel PHP
. struct php_stream_statbuf . struct php_stream_dirent . struct php_stream_ops . struct php_stream_wrapper ->struct php_stream_wrapper_ops . struct php_stream_filter . struct php_stream_filter_ops
|
10.1.8.5 struct php_stream_wrapper_ops()Conserve les fonctions d'un gestionnaire de flux[ Exemples avec truct_php_stream_wrapper_ops ] CVS uniquement
typedef struct _php_stream_wrapper_ops { /* Ouvre un flux */ php_stream *(*stream_opener)(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); /* Détruit un flux */ int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC); /* Etudie un flux */ int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSR$ /* Etudie une URL */ int (*url_stat)(php_stream_wrapper *wrapper, char *url, php_stream_statbuf *ssb TSRMLS_DC); /* Ouvre un dossier flux */ php_stream *(*dir_opener)(php_stream_wrapper *wrapper, char *filename, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC);
const char *label;
/* Efface un fichier */ int (*unlink)(php_stream_wrapper *wrapper, char *url, int options, php_stream_context *context TSRMLS_DC); } php_stream_wrapper_ops;
|