Lines Matching refs:stream

120 static size_t pgsql_lob_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC)  in pgsql_lob_write()  argument
122 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; in pgsql_lob_write()
126 static size_t pgsql_lob_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in pgsql_lob_read() argument
128 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; in pgsql_lob_read()
132 static int pgsql_lob_close(php_stream *stream, int close_handle TSRMLS_DC) in pgsql_lob_close() argument
134 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; in pgsql_lob_close()
145 static int pgsql_lob_flush(php_stream *stream TSRMLS_DC) in pgsql_lob_flush()
150 static int pgsql_lob_seek(php_stream *stream, off_t offset, int whence, in pgsql_lob_seek() argument
153 struct pdo_pgsql_lob_self *self = (struct pdo_pgsql_lob_self*)stream->abstract; in pgsql_lob_seek()
620 php_stream *stream; in PHP_METHOD() local
632stream = php_stream_open_wrapper_ex(filename, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, FG(de… in PHP_METHOD()
633 if (!stream) { in PHP_METHOD()
665 while ((buf = php_stream_get_line(stream, NULL, 0, &line_len)) != NULL) { in PHP_METHOD()
669 php_stream_close(stream); in PHP_METHOD()
674 php_stream_close(stream); in PHP_METHOD()
692 php_stream_close(stream); in PHP_METHOD()
714 php_stream *stream; in PHP_METHOD() local
727stream = php_stream_open_wrapper_ex(filename, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL, FG(de… in PHP_METHOD()
728 if (!stream) { in PHP_METHOD()
760 if (php_stream_write(stream, csv, ret) != ret) { in PHP_METHOD()
763 php_stream_close(stream); in PHP_METHOD()
770 php_stream_close(stream); in PHP_METHOD()
774 php_stream_close(stream); in PHP_METHOD()
781 php_stream_close(stream); in PHP_METHOD()
924 php_stream *stream = pdo_pgsql_create_lob_stream(dbh, lfd, oid TSRMLS_CC); in PHP_METHOD() local
925 if (stream) { in PHP_METHOD()
926 php_stream_to_zval(stream, return_value); in PHP_METHOD()