| /PHP_5_3/ext/zip/ |
| H A D | zip_stream.c | 23 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/ext/fileinfo/libmagic/ |
| H A D | fsmagic.c | 93 file_fsmagic(struct magic_set *ms, const char *fn, struct stat *sb, php_stream *stream) argument 101 if (!fn && !stream) { 105 if (stream) { 107 if (php_stream_stat(stream, &ssb) < 0) {
|
| H A D | funcs.c | 161 file_buffer(struct magic_set *ms, php_stream *stream, const char *inname, const void *buf, argument 183 file_printf(ms, mime ? "application/octet-stream" : 209 if ((m = file_zmagic(ms, stream, inname, ubuf, nb)) != 0) { 227 if (stream && SUCCESS == php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&fd, 0)) { 289 file_printf(ms, mime ? "application/octet-stream" : "data") == -1) {
|
| H A D | magic.c | 384 magic_stream(struct magic_set *ms, php_stream *stream) argument 386 return file_or_stream(ms, NULL, stream); 390 file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream) argument 399 if (!inname && !stream) { 413 switch (file_fsmagic(ms, inname, &sb, stream)) { 425 if (!stream && inname) { 428 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS|ENFORCE_SAFE_MODE, NULL); 430 stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL); 434 if (!stream) { 448 if ((nbytes = php_stream_read(stream, (cha [all...] |
| /PHP_5_3/TSRM/ |
| H A D | tsrm_nw.c | 60 FILE *stream = NULL; local 202 stream = fdopen(pipe_handle, type); 223 return stream; 226 TSRM_API int pclose(FILE* stream) argument 232 fd = fileno(stream); 235 err = fclose(stream);
|
| H A D | tsrm_win32.h | 49 FILE *stream; member in struct:__anon6 100 TSRM_API int pclose(FILE *stream);
|
| /PHP_5_3/ext/bz2/ |
| H A D | bz2.c | 132 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...] |
| H A D | bz2_filter.c | 68 php_stream *stream, 141 out_bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0 TSRMLS_CC); 164 bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0 TSRMLS_CC); 205 php_stream *stream, 257 out_bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0 TSRMLS_CC); 275 bucket = php_stream_bucket_new(stream, estrndup(data->outbuf, bucketlen), bucketlen, 1, 0 TSRMLS_CC); 430 /* Unspecified (probably strm) error, let stream-filter error do its own whining */ 67 php_bz2_decompress_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags TSRMLS_DC) argument 204 php_bz2_compress_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags TSRMLS_DC) argument
|
| /PHP_5_3/ext/curl/ |
| H A D | streams.c | 56 php_stream *stream = (php_stream *) ctx; local 57 php_curl_stream *curlstream = (php_curl_stream *) stream->abstract; 90 php_stream *stream = (php_stream *) ctx; local 91 php_curl_stream *curlstream = (php_curl_stream *) stream->abstract; 117 php_stream_notify_info(stream->context, PHP_STREAM_NOTIFY_REDIRECTED, data + 10, 0); 119 php_stream_notify_info(stream->context, PHP_STREAM_NOTIFY_MIME_TYPE_IS, data + 14, 0); 121 php_stream_notify_file_size(stream->context, atoi(data + 16), data, 0); 122 php_stream_notify_progress_init(stream->context, 0, 0); 129 static int on_progress_avail(php_stream *stream, double dltotal, double dlnow, double ultotal, double ulnow) argument 135 php_stream_notify_progress(stream 139 php_curl_stream_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) argument 150 php_curl_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) argument 210 php_curl_stream_close(php_stream *stream, int close_handle TSRMLS_DC) argument 242 php_curl_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_DC) argument 250 php_curl_stream_cast(php_stream *stream, int castas, void **ret TSRMLS_DC) argument 272 php_stream *stream; local [all...] |
| /PHP_5_3/ext/fileinfo/ |
| H A D | fileinfo.c | 448 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can only process string or stream arguments"); 485 php_stream *stream; local 488 php_stream_from_zval_no_verify(stream, &what); 489 if (!stream) { 493 streampos = php_stream_tell(stream); /* remember stream position for restoration */ 494 php_stream_seek(stream, 0, SEEK_SET); 496 ret_val = (char *) magic_stream(magic, stream); 498 php_stream_seek(stream, streampos, SEEK_SET); 518 php_stream *stream; local [all...] |
| /PHP_5_3/ext/ftp/ |
| H A D | ftp.h | 77 php_stream *stream; /* output stream for "nonblocking" transfers */ member in struct:ftpbuf 80 int closestream;/* close or not close stream */
|
| H A D | php_ftp.c | 341 Opens a FTP stream */ 377 Opens a FTP-SSL stream */ 410 /* {{{ proto bool ftp_login(resource stream, string username, string password) 435 /* {{{ proto string ftp_pwd(resource stream) 458 /* {{{ proto bool ftp_cdup(resource stream) 480 /* {{{ proto bool ftp_chdir(resource stream, string directory) 505 /* {{{ proto bool ftp_exec(resource stream, string command) 530 /* {{{ proto array ftp_raw(resource stream, string command) 550 /* {{{ proto string ftp_mkdir(resource stream, string directory) 575 /* {{{ proto bool ftp_rmdir(resource stream, strin 741 php_stream *stream; local 785 php_stream *stream; local 1025 php_stream *stream; local 1072 php_stream *stream; local [all...] |
| /PHP_5_3/ext/interbase/ |
| H A D | ibase_blobs.c | 94 int bl_stream; /* blob is stream ? */ 467 add_assoc_bool(return_value, "stream", bl_info.bl_stream); 548 php_stream *stream; local 559 php_stream_from_zval(stream, &file); 567 for (size = 0; (b = php_stream_read(stream, bl_data, sizeof(bl_data))); size += b) {
|
| /PHP_5_3/ext/mcrypt/ |
| H A D | mcrypt_filter.c | 37 php_stream *stream, 83 newbucket = php_stream_bucket_new(stream, outchunk, n, 1, data->persistent TSRMLS_CC); 114 newbucket = php_stream_bucket_new(stream, data->block_buffer, data->blocksize, 0, data->persistent TSRMLS_CC); 36 php_mcrypt_filter( php_stream *stream, php_stream_filter *thisfilter, php_stream_bucket_brigade *buckets_in, php_stream_bucket_brigade *buckets_out, size_t *bytes_consumed, int flags TSRMLS_DC) argument
|
| /PHP_5_3/ext/standard/ |
| H A D | exec.c | 67 php_stream *stream; local 117 stream = php_stream_fopen_from_pipe(fp, "rb"); 125 while (php_stream_get_line(stream, b, EXEC_INPUT_BUF, &bufl)) { 127 if (b[bufl - 1] != '\n' && !php_stream_eof(stream)) { 185 while((bufl = php_stream_read(stream, buf, EXEC_INPUT_BUF)) > 0) { 190 pclose_return = php_stream_close(stream); 481 php_stream *stream; local 501 stream = php_stream_fopen_from_pipe(in, "rb"); 502 total_readbytes = php_stream_copy_to_mem(stream, &ret, PHP_STREAM_COPY_ALL, 0); 503 php_stream_close(stream); [all...] |
| H A D | fsock.c | 42 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 D | mail.c | 227 php_stream *stream = php_stream_open_wrapper(mail_log, "a", IGNORE_URL_WIN | REPORT_ERRORS | STREAM_DISABLE_OPEN_BASEDIR, NULL); local 236 if (stream) { 237 php_stream_write(stream, tmp, l); 238 php_stream_close(stream);
|
| H A D | md5.c | 86 php_stream *stream; local 92 stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL); 93 if (!stream) { 99 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { 105 php_stream_close(stream);
|
| H A D | php_fopen_wrapper.c | 34 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 D | sha1.c | 76 php_stream *stream; local 82 stream = php_stream_open_wrapper(arg, "rb", REPORT_ERRORS | ENFORCE_SAFE_MODE, NULL); 83 if (!stream) { 89 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { 95 php_stream_close(stream);
|
| /PHP_5_3/ext/zlib/ |
| H A D | php_zlib.h | 30 z_stream stream; variable
|
| H A D | zlib_fopen_wrapper.c | 30 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/streams/ |
| H A D | glob_wrapper.c | 50 PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */ argument 52 glob_s_t *pglob = (glob_s_t *)stream->abstract; 72 PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC) /* {{{ */ argument 74 glob_s_t *pglob = (glob_s_t *)stream->abstract; 94 PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC) /* {{{ */ argument 96 glob_s_t *pglob = (glob_s_t *)stream->abstract; 140 static size_t php_glob_stream_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) /* {{{ */ argument 142 glob_s_t *pglob = (glob_s_t *)stream->abstract; 146 /* avoid problems if someone mis-uses the stream */ 164 static int php_glob_stream_close(php_stream *stream, in argument 183 php_glob_stream_rewind(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) argument [all...] |
| H A D | mmap.c | 25 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) {
|
| /PHP_5_3/Zend/ |
| H A D | zend_stream.h | 27 /* Lightweight stream implementation for the ZE scanners. 69 zend_stream stream; member in union:_zend_file_handle::__anon15
|