Searched refs:stream (Results 1 - 25 of 114) sorted by relevance

12345

/PHP_5_3/ext/standard/tests/filters/
H A Dfilter_errors.inc18 $stream = fopen('php://memory', 'wb+');
20 fwrite($stream, b".\r\n$data");
21 fseek($stream, 0, SEEK_SET);
22 stream_get_line($stream, 8192, "\r\n");
24 $f = stream_filter_append($stream, $filter);
28 $stream = fopen('php://memory', 'wb+');
30 fwrite($stream, b"$data");
31 fseek($stream, 0, SEEK_SET);
33 stream_filter_append($stream, $filter);
34 stream_get_contents($stream);
[all...]
/PHP_5_3/ext/zip/
H A Dzip_stream.c23 php_stream *stream; member in struct:php_zip_stream_data_t
27 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
31 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
41 stream->eof = 1;
42 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf));
48 stream->eof = 1;
58 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
60 if (!stream) {
69 static int php_zip_ops_close(php_stream *stream, int close_handle TSRMLS_DC) argument
84 stream
100 php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
193 php_stream *stream = NULL; local
256 php_stream *stream = NULL; local
[all...]
/PHP_5_3/TSRM/
H A Dtsrm_nw.h27 TSRM_API int pclose(FILE* stream);
/PHP_5_3/ext/bz2/
H A Dbz2.c132 php_stream *stream; local
135 /* {{{ BZip2 stream implementation */
137 static size_t php_bz2iop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
139 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *) stream->abstract;
145 stream->eof = 1;
151 static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
153 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *) stream->abstract;
158 static int php_bz2iop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
160 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
167 if (self->stream) {
214 php_stream *retstream = NULL, *stream = NULL; local
332 php_stream *stream; local
375 php_stream *stream = NULL; local
597 php_stream *stream; local
[all...]
/PHP_5_3/ext/openssl/
H A Dxp_ssl.c40 int php_openssl_apply_verification_policy(SSL *ssl, X509 *peer, php_stream *stream TSRMLS_DC);
41 SSL *php_SSL_new_from_context(SSL_CTX *ctx, php_stream *stream TSRMLS_DC);
67 static int is_http_stream_talking_to_iis(php_stream *stream TSRMLS_DC)
69 if (stream->wrapperdata && stream->wrapper && strcasecmp(stream->wrapper->wops->label, "HTTP") == 0) {
76 zend_hash_internal_pointer_reset(Z_ARRVAL_P(stream->wrapperdata));
77 while (SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(stream->wrapperdata), (void**)&tmp)) {
85 zend_hash_move_forward(Z_ARRVAL_P(stream->wrapperdata));
91 static int handle_ssl_error(php_stream *stream, in argument
175 php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
207 php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
245 php_openssl_sockop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
301 php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
307 php_openssl_setup_crypto(php_stream *stream, php_openssl_netstream_data_t *sslsock, php_stream_xport_crypto_param *cparam TSRMLS_DC) argument
418 php_openssl_enable_crypto(php_stream *stream, php_openssl_netstream_data_t *sslsock, php_stream_xport_crypto_param *cparam TSRMLS_DC) argument
598 php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_netstream_data_t *sock, php_stream_xport_param *xparam STREAMS_DC TSRMLS_DC) argument
674 php_openssl_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
792 php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument
893 php_stream *stream = NULL; local
[all...]
/PHP_5_3/ext/standard/
H A Dfsock.c42 php_stream *stream = NULL; local
79 stream = php_stream_xport_create(hostname, hostname_len, ENFORCE_SAFE_MODE | REPORT_ERRORS,
85 if (stream == NULL) {
93 if (stream == NULL) {
114 php_stream_to_zval(stream, return_value);
H A Dftp_fopen_wrapper.c73 #define GET_FTP_RESULT(stream) get_ftp_result((stream), tmp_line, sizeof(tmp_line) TSRMLS_CC)
83 static inline int get_ftp_result(php_stream *stream, char *buffer, size_t buffer_size TSRMLS_DC) argument
85 while (php_stream_gets(stream, buffer, buffer_size-1) &&
94 static int php_stream_ftp_stream_stat(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
104 static int php_stream_ftp_stream_close(php_stream_wrapper *wrapper, php_stream *stream TSRMLS_DC)
106 php_stream *controlstream = stream->wrapperthis;
110 if (strpbrk(stream->mode, "wa+")) {
114 /* For write modes close data stream first to signal EOF to server */
124 stream
136 php_stream *stream = NULL, *reuseid = NULL; local
323 php_fopen_do_pasv(php_stream *stream, char *ip, size_t ip_size, char **phoststart TSRMLS_DC) argument
416 php_stream *stream = NULL, *datastream = NULL; local
608 php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
659 php_ftp_dirstream_close(php_stream *stream, int close_handle TSRMLS_DC) argument
697 php_stream *stream, *reuseid, *datastream = NULL; local
786 php_stream *stream = NULL; local
909 php_stream *stream = NULL; local
959 php_stream *stream = NULL; local
1038 php_stream *stream = NULL; local
1132 php_stream *stream = NULL; local
[all...]
H A Dimage.c100 static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC)
105 if (php_stream_seek(stream, 3, SEEK_CUR))
108 if (php_stream_read(stream, dim, sizeof(dim)) != sizeof(dim))
123 static struct gfxinfo *php_handle_psd (php_stream * stream TSRMLS_DC)
128 if (php_stream_seek(stream, 11, SEEK_CUR))
131 if (php_stream_read(stream, dim, sizeof(dim)) != sizeof(dim))
144 static struct gfxinfo *php_handle_bmp (php_stream * stream TSRMLS_DC)
150 if (php_stream_seek(stream, 11, SEEK_CUR))
153 if (php_stream_read(stream, dim, sizeof(dim)) != sizeof(dim))
194 static struct gfxinfo *php_handle_swc(php_stream * stream TSRMLS_D
373 php_next_marker(php_stream * stream, int last_marker, int comment_correction, int ff_read TSRMLS_DC) argument
436 php_read_APP(php_stream * stream, unsigned int marker, zval *info TSRMLS_DC) argument
470 php_handle_jpeg(php_stream * stream, zval *info TSRMLS_DC) argument
798 php_handle_tiff(php_stream * stream, zval *info, int motorola_intel TSRMLS_DC) argument
940 php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC) argument
1010 php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC) argument
1219 php_getimagetype(php_stream * stream, char *filetype TSRMLS_DC) argument
1300 php_stream * stream = NULL; local
[all...]
H A Dphp_fopen_wrapper.c34 static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
41 static size_t php_stream_output_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
43 stream->eof = 1;
48 static int php_stream_output_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ argument
66 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
72 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
74 off_t *position = (off_t*)stream->abstract;
77 if (!stream->eof) {
81 stream->eof = 1;
91 stream
107 php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) argument
133 php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int write_chain TSRMLS_DC) argument
164 php_stream * stream = NULL; local
[all...]
H A Dstreamsfuncs.c95 php_stream *stream = NULL; local
131 stream = php_stream_xport_create(host, host_len, ENFORCE_SAFE_MODE | REPORT_ERRORS,
137 if (stream == NULL) {
149 if (stream == NULL) {
168 php_stream_to_zval(stream, return_value);
180 php_stream *stream = NULL; local
207 stream = php_stream_xport_create(host, host_len, ENFORCE_SAFE_MODE | REPORT_ERRORS,
211 if (stream == NULL) {
215 if (stream == NULL) {
234 php_stream_to_zval(stream, return_valu
248 php_stream *stream = NULL, *clistream = NULL; local
299 php_stream *stream; local
327 php_stream *stream; local
356 php_stream *stream; local
412 php_stream *stream; local
496 php_stream *stream; local
613 php_stream *stream; local
655 php_stream *stream; local
711 php_stream *stream; local
984 php_stream *stream; local
1184 php_stream *stream; local
1313 php_stream *stream; local
1345 php_stream *stream; local
1372 php_stream *stream; local
1407 php_stream *stream; local
1436 php_stream *stream; local
1463 php_stream *stream, *sessstream = NULL; local
1525 php_stream *stream = NULL; local
1556 php_stream *stream; local
1583 php_stream *stream; local
[all...]
/PHP_5_3/ext/zlib/
H A Dzlib.c399 php_stream *stream; local
407 /* using a stream here is a bit more efficient (resource wise) than php_gzopen_wrapper */
408 stream = php_stream_gzopen(NULL, filename, "rb", use_include_path | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, NULL STREAMS_CC TSRMLS_CC);
409 if (stream == NULL) {
410 /* Error reporting is already done by stream code */
420 while (php_stream_gets(stream, buf, sizeof(buf) - 1) != NULL) {
430 php_stream_close(stream);
441 php_stream *stream; local
450 stream = php_stream_gzopen(NULL, filename, mode, use_include_path | ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, NULL STREAMS_CC TSRMLS_CC);
452 if (!stream) {
469 php_stream *stream; local
583 z_stream stream; local
647 z_stream stream; local
863 z_stream stream; local
[all...]
H A Dzlib_fopen_wrapper.c30 php_stream *stream; member in struct:php_gz_stream_data_t
33 static size_t php_gziop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
35 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
41 stream->eof = 1;
47 static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
49 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
57 static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
59 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
72 static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
74 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream
113 php_stream *stream = NULL, *innerstream = NULL; local
[all...]
/PHP_5_3/main/
H A Dphp_streams.h92 * The only exceptions to this rule are that stream implementations can use
118 size_t (*write)(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
119 size_t (*read)(php_stream *stream, char *buf, size_t count TSRMLS_DC);
120 int (*close)(php_stream *stream, int close_handle TSRMLS_DC);
121 int (*flush)(php_stream *stream TSRMLS_DC);
126 int (*seek)(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
127 int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC);
128 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
129 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC);
133 /* open/create a wrapped stream */
[all...]
/PHP_5_3/main/streams/
H A Dfilter.c73 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent TSRMLS_DC) argument
75 int is_persistent = php_stream_is_persistent(stream);
339 php_stream *stream = chain->stream; local
351 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) {
359 bucket = php_stream_bucket_new(stream, (char*) stream->readbuf + stream
437 php_stream *stream; local
[all...]
H A Dmemory.c27 /* Memory streams use a dynamic memory buffer to emulate a stream.
28 * You can use php_stream_memory_open to create a readonly stream
37 /* {{{ ------- MEMORY stream implementation -------*/
50 static size_t php_stream_memory_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
52 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
86 static size_t php_stream_memory_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
88 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
93 stream->eof = 1;
107 static int php_stream_memory_close(php_stream *stream, int close_handle TSRMLS_DC) argument
109 php_stream_memory_data *ms = (php_stream_memory_data*)stream
134 php_stream_memory_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
198 php_stream_memory_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument
204 php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
247 php_stream_memory_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
296 php_stream *stream; local
316 php_stream *stream; local
339 _php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC TSRMLS_DC) argument
364 php_stream_temp_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
389 php_stream_temp_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
410 php_stream_temp_close(php_stream *stream, int close_handle TSRMLS_DC) argument
446 php_stream_temp_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument
466 php_stream_temp_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument
511 php_stream_temp_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
522 php_stream_temp_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
557 php_stream *stream; local
577 php_stream *stream; local
607 php_stream *stream; local
[all...]
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC) argument
40 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_MAP_RANGE, &range)) {
49 PHPAPI int _php_stream_mmap_unmap(php_stream *stream TSRMLS_DC)
51 return php_stream_set_option(stream, PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_UNMAP, NULL) == PHP_STREAM_OPTION_RETURN_OK ? 1 : 0;
54 PHPAPI int _php_stream_mmap_unmap_ex(php_stream *stream, off_t readden TSRMLS_DC) argument
58 if (php_stream_seek(stream, readden, SEEK_CUR) != 0) {
61 if (php_stream_mmap_unmap(stream) == 0) {
H A Dphp_stream_glob_wrapper.h26 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC);
27 #define php_glob_stream_get_path(stream, copy, plen) _php_glob_stream_get_path((stream), (copy), (plen) STREAMS_CC TSRMLS_CC)
29 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC);
30 #define php_glob_stream_get_pattern(stream, copy, plen) _php_glob_stream_get_pattern((stream), (copy), (plen) STREAMS_CC TSRMLS_CC)
32 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC);
33 #define php_glob_stream_get_count(stream, pflags) _php_glob_stream_get_count((stream), (pflags) STREAMS_CC TSRMLS_CC)
H A Dphp_stream_mmap.h31 /* Does the stream support mmap ? */
35 * on the stream (win9x compatibility) */
37 /* Unmap the last range that was mapped for the stream */
63 #define php_stream_mmap_supported(stream) (_php_stream_set_option((stream), PHP_STREAM_OPTION_MMAP_API, PHP_STREAM_MMAP_SUPPORTED, NULL TSRMLS_CC) == 0 ? 1 : 0)
65 /* Returns 1 if the stream in its current state can be memory mapped,
67 #define php_stream_mmap_possible(stream) (!php_stream_is_filtered((stream)) && php_stream_mmap_supported((stream)))
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_
[all...]
H A Dphp_stream_transport.h60 /* Bind the stream to a local address */
61 PHPAPI int php_stream_xport_bind(php_stream *stream,
67 PHPAPI int php_stream_xport_connect(php_stream *stream,
76 PHPAPI int php_stream_xport_listen(php_stream *stream,
83 PHPAPI int php_stream_xport_accept(php_stream *stream, php_stream **client,
91 PHPAPI int php_stream_xport_get_name(php_stream *stream, int want_peer,
101 /* Similar to recv() system call; read data from the stream, optionally
103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
107 /* Similar to send() system call; send data to the stream, optionally
109 PHPAPI int php_stream_xport_sendto(php_stream *stream, cons
[all...]
H A Dstreams.c78 php_stream *stream; local
84 stream = (php_stream*)rsrc->ptr;
87 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);
90 stream->rsrc_id = FAILURE;
92 if (stream->context) {
95 stream->context TSRMLS_CC);
96 stream->context = NULL;
108 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC)
114 if (stream) {
336 _php_stream_free(php_stream *stream, int close_options TSRMLS_DC) argument
505 php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_DC) argument
637 _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS_DC) argument
720 _php_stream_putc(php_stream *stream, int c TSRMLS_DC) argument
740 _php_stream_puts(php_stream *stream, char *buf TSRMLS_DC) argument
752 _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
772 php_stream_locate_eol(php_stream *stream, char *buf, size_t buf_len TSRMLS_DC) argument
814 _php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len TSRMLS_DC) argument
931 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, char *delim, size_t delim_len TSRMLS_DC) argument
955 php_stream_get_record(php_stream *stream, size_t maxlen, size_t *returned_len, char *delim, size_t delim_len TSRMLS_DC) argument
1044 _php_stream_write_buffer(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
1089 _php_stream_write_filtered(php_stream *stream, const char *buf, size_t count, int flags TSRMLS_DC) argument
1150 _php_stream_flush(php_stream *stream, int closing TSRMLS_DC) argument
1165 _php_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
1203 _php_stream_seek(php_stream *stream, off_t offset, int whence TSRMLS_DC) argument
1282 _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
1315 _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC) argument
1544 php_stream *stream = (php_stream*)rsrc->ptr; local
1551 php_stream *stream = (php_stream*)rsrc->ptr; local
1895 php_stream *stream = NULL; local
1944 php_stream *stream = NULL; local
2087 php_stream_context_set(php_stream *stream, php_stream_context *context) argument
2188 php_stream_context_get_link(php_stream_context *context, const char *hostent, php_stream **stream) argument
2203 php_stream_context_set_link(php_stream_context *context, const char *hostent, php_stream *stream) argument
2220 php_stream_context_del_link(php_stream_context *context, php_stream *stream) argument
2270 php_stream *stream; local
[all...]
H A Dtransports.c60 php_stream *stream = NULL; local
75 switch(php_stream_from_persistent_id(persistent_id, &stream TSRMLS_CC)) {
79 if (PHP_STREAM_OPTION_RETURN_OK == php_stream_set_option(stream, PHP_STREAM_OPTION_CHECK_LIVENESS, 0, NULL)) {
80 return stream;
83 php_stream_pclose(stream);
84 stream = NULL;
132 stream = (*factory)(protocol, n,
136 if (stream) {
137 php_stream_context_set(stream, context);
143 if (-1 == php_stream_xport_connect(stream, nam
196 php_stream_xport_bind(php_stream *stream, const char *name, long namelen, char **error_text TSRMLS_DC) argument
224 php_stream_xport_connect(php_stream *stream, const char *name, long namelen, int asynchronous, struct timeval *timeout, char **error_text, int *error_code TSRMLS_DC) argument
260 php_stream_xport_listen(php_stream *stream, int backlog, char **error_text TSRMLS_DC) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen, struct timeval *timeout, char **error_text TSRMLS_DC) argument
323 php_stream_xport_get_name(php_stream *stream, int want_peer, char **textaddr, int *textaddrlen, void **addr, socklen_t *addrlen TSRMLS_DC) argument
354 php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream TSRMLS_DC) argument
375 php_stream_xport_crypto_enable(php_stream *stream, int activate TSRMLS_DC) argument
397 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, long flags, void **addr, socklen_t *addrlen, char **textaddr, int *textaddrlen TSRMLS_DC) argument
467 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, long flags, void *addr, socklen_t addrlen TSRMLS_DC) argument
507 php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how TSRMLS_DC) argument
[all...]
H A Dcast.c88 php_stream *stream = (php_stream*)cookie; local
92 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
93 return php_stream_close(stream);
135 php_stream *stream = (php_stream*)cookie; local
139 stream->fclose_stdiocast = PHP_STREAM_FCLOSE_NONE;
140 return php_stream_close(stream);
157 void php_stream_mode_sanitize_fdopen_fopencookie(php_stream *stream, char *result) argument
161 const char *cur_mode = stream->mode;
200 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err TSRMLS_DC) argument
207 php_stream_flush(stream);
357 php_stream *stream = NULL; local
[all...]
/PHP_5_3/Zend/
H A Dzend_stream.c79 static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */
81 if (stream->mmap.map) {
82 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
85 if (stream->mmap.buf) {
86 efree(stream->mmap.buf);
88 stream->mmap.len = 0;
89 stream->mmap.pos = 0;
90 stream->mmap.map = 0;
91 stream
[all...]
/PHP_5_3/ext/phar/
H A Ddirstream.h30 static size_t phar_dir_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
31 static size_t phar_dir_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
32 static int phar_dir_close(php_stream *stream, int close_handle TSRMLS_DC);
33 static int phar_dir_flush(php_stream *stream TSRMLS_DC);
34 static int phar_dir_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
H A Dstream.h32 /* file/stream handlers */
33 static size_t phar_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
34 static size_t phar_stream_read( php_stream *stream, char *buf, size_t count TSRMLS_DC);
35 static int phar_stream_close(php_stream *stream, int close_handle TSRMLS_DC);
36 static int phar_stream_flush(php_stream *stream TSRMLS_DC);
37 static int phar_stream_seek( php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC);
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);

Completed in 82 milliseconds

12345