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

12345

/PHP_TRUNK/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_TRUNK/ext/pgsql/tests/
H A Dnonblocking.inc3 function nb_is_readable($stream, $timeout = 1) {
4 $r = [$stream]; $w = []; $e = [];
7 function nb_is_writable($stream, $timeout = 1) {
8 $r = []; $w = [$stream]; $e = [];
/PHP_TRUNK/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, zend_off_t offset, int whence, zend_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, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC);
38 static int phar_stream_stat( php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
/PHP_TRUNK/Zend/
H A Dzend_stream.c78 static void zend_stream_unmap(zend_stream *stream TSRMLS_DC) { /* {{{ */
80 if (stream->mmap.map) {
81 munmap(stream->mmap.map, stream->mmap.len + ZEND_MMAP_AHEAD);
84 if (stream->mmap.buf) {
85 efree(stream->mmap.buf);
87 stream->mmap.len = 0;
88 stream->mmap.pos = 0;
89 stream->mmap.map = 0;
90 stream
[all...]
/PHP_TRUNK/TSRM/
H A Dtsrm_nw.h27 TSRM_API int pclose(FILE* stream);
/PHP_TRUNK/ext/bz2/
H A Dbz2.c133 php_stream *stream; local
136 /* {{{ BZip2 stream implementation */
138 static size_t php_bz2iop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
140 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
146 stream->eof = 1;
152 static size_t php_bz2iop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
154 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
159 static int php_bz2iop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
161 struct php_bz2_stream_data_t *self = (struct php_bz2_stream_data_t *)stream->abstract;
168 if (self->stream) {
215 php_stream *retstream = NULL, *stream = NULL; local
347 php_stream *stream; local
377 php_stream *stream = NULL; local
596 php_stream *stream; local
[all...]
/PHP_TRUNK/ext/gd/
H A Dgd_ctx.c51 php_stream * stream = (php_stream *)ctx->data; local
53 php_stream_write(stream, &ch, 1);
58 php_stream * stream = (php_stream *)ctx->data; local
60 return php_stream_write(stream, (void *)buf, l);
89 php_stream *stream; local
122 php_stream_from_zval_no_verify(stream, to_zval);
123 if (stream == NULL) {
132 stream = php_stream_open_wrapper(Z_STRVAL_P(to_zval), "wb", REPORT_ERRORS|IGNORE_PATH|IGNORE_URL_WIN, NULL);
133 if (stream == NULL) {
137 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid 2nd parameter, it must a filename or a stream");
[all...]
/PHP_TRUNK/ext/standard/
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
137 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
417 php_stream *stream = NULL, *datastream = NULL; local
609 php_ftp_dirstream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
651 php_ftp_dirstream_close(php_stream *stream, int close_handle TSRMLS_DC) argument
690 php_stream *stream, *reuseid, *datastream = NULL; local
779 php_stream *stream = NULL; local
902 php_stream *stream = NULL; local
952 php_stream *stream = NULL; local
1031 php_stream *stream = NULL; local
1125 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
72 static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
78 static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ argument
80 php_stream_input_t *input = stream->abstract;
97 stream->eof = 1;
106 static int php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) /* {{{ */ argument
108 efree(stream
121 php_stream_input_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC) argument
147 php_stream_apply_filter_list(php_stream *stream, char *filterlist, int read_chain, int write_chain TSRMLS_DC) argument
179 php_stream * stream = NULL; local
[all...]
H A Dstreamsfuncs.c43 #define GET_CTX_OPT(stream, wrapper, name, val) (PHP_STREAM_CONTEXT(stream) && NULL != (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), wrapper, name)))
97 php_stream *stream = NULL; local
133 stream = php_stream_xport_create(host, host_len, REPORT_ERRORS,
139 if (stream == NULL) {
151 if (stream == NULL) {
169 php_stream_to_zval(stream, return_value);
181 php_stream *stream = NULL; local
208 stream
247 php_stream *stream = NULL, *clistream = NULL; local
296 php_stream *stream; local
322 php_stream *stream; local
351 php_stream *stream; local
399 php_stream *stream; local
479 php_stream *stream; local
581 php_stream *stream; local
619 php_stream *stream; local
672 php_stream *stream; local
918 php_stream *stream; local
1118 php_stream *stream; local
1248 php_stream *stream; local
1280 php_stream *stream; local
1307 php_stream *stream; local
1342 php_stream *stream; local
1370 php_stream *stream; local
1405 php_stream *stream; local
1432 php_stream *stream, *sessstream = NULL; local
1505 php_stream *stream = NULL; local
1536 php_stream *stream; local
1563 php_stream *stream; local
[all...]
H A Dimage.c103 static struct gfxinfo *php_handle_gif (php_stream * stream TSRMLS_DC)
108 if (php_stream_seek(stream, 3, SEEK_CUR))
111 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
126 static struct gfxinfo *php_handle_psd (php_stream * stream TSRMLS_DC)
131 if (php_stream_seek(stream, 11, SEEK_CUR))
134 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
147 static struct gfxinfo *php_handle_bmp (php_stream * stream TSRMLS_DC)
153 if (php_stream_seek(stream, 11, SEEK_CUR))
156 if (php_stream_read(stream, (char*)dim, sizeof(dim)) != sizeof(dim))
198 static struct gfxinfo *php_handle_swc(php_stream * stream TSRMLS_D
378 php_next_marker(php_stream * stream, int last_marker, int comment_correction, int ff_read TSRMLS_DC) argument
441 php_read_APP(php_stream * stream, unsigned int marker, zval *info TSRMLS_DC) argument
475 php_handle_jpeg(php_stream * stream, zval *info TSRMLS_DC) argument
803 php_handle_tiff(php_stream * stream, zval *info, int motorola_intel TSRMLS_DC) argument
945 php_get_wbmp(php_stream *stream, struct gfxinfo **result, int check TSRMLS_DC) argument
1015 php_get_xbm(php_stream *stream, struct gfxinfo **result TSRMLS_DC) argument
1224 php_getimagetype(php_stream * stream, char *filetype TSRMLS_DC) argument
1297 php_getimagesize_from_stream(php_stream *stream, zval *info, INTERNAL_FUNCTION_PARAMETERS) argument
1394 php_stream *stream = NULL; local
[all...]
H A Dfile.c130 #define PHP_STREAM_TO_ZVAL(stream, arg) \
131 php_stream_from_zval_no_verify(stream, arg); \
132 if (stream == NULL) { \
181 le_stream_context = zend_register_list_destructors_ex(file_context_dtor, NULL, "stream-context", module_number);
344 php_stream *stream; local
351 PHP_STREAM_TO_ZVAL(stream, arg1);
366 if (php_stream_lock(stream, act)) {
400 md.stream = php_stream_open_wrapper(filename, "rb",
403 if (!md.stream) {
517 php_stream_close(md.stream);
528 php_stream *stream; local
578 php_stream *stream; local
725 php_stream *stream; local
843 php_stream *stream; local
867 php_stream *stream; local
891 php_stream *stream; local
927 php_stream *stream; local
969 php_stream *stream; local
989 php_stream *stream; local
1014 php_stream *stream; local
1068 php_stream *stream; local
1098 php_stream *stream; local
1203 php_stream *stream; local
1240 php_stream *stream; local
1261 php_stream *stream; local
1282 php_stream *stream; local
1304 php_stream *stream; local
1390 php_stream *stream; local
1443 php_stream *stream; local
1530 php_stream *stream; local
1554 php_stream *stream; local
1785 php_stream *stream; local
1853 php_stream *stream; local
1909 php_fputcsv(php_stream *stream, zval *fields, char delimiter, char enclosure, char escape_char TSRMLS_DC) argument
1980 php_stream *stream; local
2066 php_fgetcsv(php_stream *stream, char delimiter, char enclosure, char escape_char, size_t buf_len, char *buf, zval *return_value TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/zip/
H A Dzip_stream.c39 php_stream *stream; member in struct:php_zip_stream_data_t
43 struct php_zip_stream_data_t *self = (struct php_zip_stream_data_t *) stream->abstract;
47 static size_t php_zip_ops_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
57 stream->eof = 1;
58 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Zip stream error: %s", zip_file_strerror(self->zf));
64 stream->eof = 1;
74 static size_t php_zip_ops_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
76 if (!stream) {
85 static int php_zip_ops_close(php_stream *stream, int close_handle TSRMLS_DC) argument
100 stream
116 php_zip_ops_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
208 php_stream *stream = NULL; local
270 php_stream *stream = NULL; local
[all...]
/PHP_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c32 php_stream *stream; member in struct:php_gz_stream_data_t
35 static size_t php_gziop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
37 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
44 stream->eof = 1;
50 static size_t php_gziop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
52 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
61 static int php_gziop_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
63 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream->abstract;
76 static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
78 struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *) stream
117 php_stream *stream = NULL, *innerstream = NULL; local
[all...]
/PHP_TRUNK/main/streams/
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...]
H A Dfilter.c71 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
73 int is_persistent = php_stream_is_persistent(stream);
337 php_stream *stream = chain->stream; local
349 if (&(stream->readfilters) == chain && (stream->writepos - stream->readpos) > 0) {
357 bucket = php_stream_bucket_new(stream, (char*) stream->readbuf + stream
435 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 -------*/
49 static size_t php_stream_memory_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
51 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
85 static size_t php_stream_memory_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
87 php_stream_memory_data *ms = (php_stream_memory_data*)stream->abstract;
92 stream->eof = 1;
106 static int php_stream_memory_close(php_stream *stream, int close_handle TSRMLS_DC) argument
108 php_stream_memory_data *ms = (php_stream_memory_data*)stream
130 php_stream_memory_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
194 php_stream_memory_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument
200 php_stream_memory_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
243 php_stream_memory_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
292 php_stream *stream; local
311 php_stream *stream; local
334 _php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC TSRMLS_DC) argument
360 php_stream_temp_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
386 php_stream_temp_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
407 php_stream_temp_close(php_stream *stream, int close_handle TSRMLS_DC) argument
445 php_stream_temp_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffs TSRMLS_DC) argument
465 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
585 php_stream *stream; local
617 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, zend_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, size_t *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, size_t *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 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 TSRMLS_CC);
143 if (-1 == php_stream_xport_connect(stream, nam
196 php_stream_xport_bind(php_stream *stream, const char *name, size_t namelen, zend_string **error_text TSRMLS_DC) argument
224 php_stream_xport_connect(php_stream *stream, const char *name, size_t namelen, int asynchronous, struct timeval *timeout, zend_string **error_text, int *error_code TSRMLS_DC) argument
260 php_stream_xport_listen(php_stream *stream, int backlog, zend_string **error_text TSRMLS_DC) argument
284 php_stream_xport_accept(php_stream *stream, php_stream **client, zend_string **textaddr, void **addr, socklen_t *addrlen, struct timeval *timeout, zend_string **error_text TSRMLS_DC) argument
322 php_stream_xport_get_name(php_stream *stream, int want_peer, zend_string **textaddr, void **addr, socklen_t *addrlen TSRMLS_DC) argument
352 php_stream_xport_crypto_setup(php_stream *stream, php_stream_xport_crypt_method_t crypto_method, php_stream *session_stream TSRMLS_DC) argument
373 php_stream_xport_crypto_enable(php_stream *stream, int activate TSRMLS_DC) argument
395 php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, long flags, void **addr, socklen_t *addrlen, zend_string **textaddr TSRMLS_DC) argument
464 php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, long flags, void *addr, socklen_t addrlen TSRMLS_DC) argument
504 php_stream_xport_shutdown(php_stream *stream, stream_shutdown_t how TSRMLS_DC) argument
[all...]
H A Dstreams.c79 php_stream *stream; local
86 stream = (php_stream*)rsrc->ptr;
89 fprintf(stderr, "forget_persistent: %s:%p\n", stream->ops->label, stream);
92 stream->res = NULL;
94 if (PHP_STREAM_CONTEXT(stream)) {
97 PHP_STREAM_CONTEXT(stream) TSRMLS_CC);
98 stream->ctx = NULL;
119 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream TSRMLS_DC)
125 if (stream) {
379 _php_stream_free(php_stream *stream, int close_options TSRMLS_DC) argument
575 php_stream_fill_read_buffer(php_stream *stream, size_t size TSRMLS_DC) argument
707 _php_stream_read(php_stream *stream, char *buf, size_t size TSRMLS_DC) argument
794 _php_stream_putc(php_stream *stream, int c TSRMLS_DC) argument
814 _php_stream_puts(php_stream *stream, const char *buf TSRMLS_DC) argument
826 _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
846 php_stream_locate_eol(php_stream *stream, zend_string *buf TSRMLS_DC) argument
888 _php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_len TSRMLS_DC) argument
1005 _php_stream_search_delim(php_stream *stream, size_t maxlen, size_t skiplen, const char *delim, size_t delim_len TSRMLS_DC) argument
1029 php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, size_t delim_len TSRMLS_DC) argument
1118 _php_stream_write_buffer(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
1163 _php_stream_write_filtered(php_stream *stream, const char *buf, size_t count, int flags TSRMLS_DC) argument
1224 _php_stream_flush(php_stream *stream, int closing TSRMLS_DC) argument
1239 _php_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
1277 _php_stream_seek(php_stream *stream, zend_off_t offset, int whence TSRMLS_DC) argument
1356 _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
1389 _php_stream_truncate_set_size(php_stream *stream, size_t newsize TSRMLS_DC) argument
1627 php_stream *stream = (php_stream*)rsrc->ptr; local
1634 php_stream *stream = (php_stream*)rsrc->ptr; local
1977 php_stream *stream = NULL; local
2026 php_stream *stream = NULL; local
2168 php_stream_context_set(php_stream *stream, php_stream_context *context TSRMLS_DC) argument
2282 php_stream *stream; local
[all...]
/PHP_TRUNK/ext/openssl/
H A Dxp_ssl.c61 /* Flags for determining allowed stream crypto methods */
70 #define GET_VER_OPT(name) (PHP_STREAM_CONTEXT(stream) && (val = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "ssl", name)) != NULL)
122 static int is_http_stream_talking_to_iis(php_stream *stream TSRMLS_DC) /* {{{ */
124 if (Z_TYPE(stream->wrapperdata) == IS_ARRAY && stream->wrapper && strcasecmp(stream->wrapper->wops->label, "HTTP") == 0) {
131 ZEND_HASH_FOREACH_VAL(Z_ARRVAL(stream->wrapperdata), tmp) {
143 static int handle_ssl_error(php_stream *stream, int nr_bytes, zend_bool is_init TSRMLS_DC) /* {{{ */ argument
145 php_openssl_netstream_data_t *sslsock = (php_openssl_netstream_data_t*)stream
229 php_stream *stream; local
508 php_stream *stream = (php_stream *)data; local
532 php_stream *stream; local
692 php_stream *stream; local
962 php_stream *stream; local
1031 init_server_reneg_limit(php_stream *stream, php_openssl_netstream_data_t *sslsock) argument
1072 set_server_rsa_key(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) argument
1135 set_server_ecdh_curve(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) argument
1170 set_server_specific_opts(php_stream *stream, SSL_CTX *ctx TSRMLS_DC) argument
1231 php_stream *stream; local
1260 enable_server_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock TSRMLS_DC) argument
1347 enable_client_sni(php_stream *stream, php_openssl_netstream_data_t *sslsock TSRMLS_DC) argument
1373 php_openssl_setup_crypto(php_stream *stream, php_openssl_netstream_data_t *sslsock, php_stream_xport_crypto_param *cparam TSRMLS_DC) argument
1554 capture_peer_certs(php_stream *stream, php_openssl_netstream_data_t *sslsock, X509 *peer_cert TSRMLS_DC) argument
1599 php_openssl_enable_crypto(php_stream *stream, php_openssl_netstream_data_t *sslsock, php_stream_xport_crypto_param *cparam TSRMLS_DC) argument
1748 php_openssl_sockop_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument
1781 php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument
1825 php_openssl_sockop_close(php_stream *stream, int close_handle TSRMLS_DC) argument
1899 php_openssl_sockop_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument
1905 php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_netstream_data_t *sock, php_stream_xport_param *xparam STREAMS_DC TSRMLS_DC) argument
1968 php_openssl_sockop_set_option(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC) argument
2086 php_openssl_sockop_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument
2188 php_stream *stream = NULL; local
[all...]
/PHP_TRUNK/main/
H A Dphp_streams.h94 * The only exceptions to this rule are that stream implementations can use
120 size_t (*write)(php_stream *stream, const char *buf, size_t count TSRMLS_DC);
121 size_t (*read)(php_stream *stream, char *buf, size_t count TSRMLS_DC);
122 int (*close)(php_stream *stream, int close_handle TSRMLS_DC);
123 int (*flush)(php_stream *stream TSRMLS_DC);
128 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC);
129 int (*cast)(php_stream *stream, int castas, void **ret TSRMLS_DC);
130 int (*stat)(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC);
131 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam TSRMLS_DC);
135 /* open/create a wrapped stream */
[all...]

Completed in 48 milliseconds

12345