Lines Matching refs:php_stream
96 typedef struct _php_stream php_stream; typedef
121 ssize_t (*write)(php_stream *stream, const char *buf, size_t count);
122 ssize_t (*read)(php_stream *stream, char *buf, size_t count);
123 int (*close)(php_stream *stream, int close_handle);
124 int (*flush)(php_stream *stream);
129 int (*seek)(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset);
130 int (*cast)(php_stream *stream, int castas, void **ret);
131 int (*stat)(php_stream *stream, php_stream_statbuf *ssb);
132 int (*set_option)(php_stream *stream, int option, int value, void *ptrparam);
137 php_stream *(*stream_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
140 int (*stream_closer)(php_stream_wrapper *wrapper, php_stream *stream);
142 int (*stream_stat)(php_stream_wrapper *wrapper, php_stream *stream, php_stream_statbuf *ssb);
146 php_stream *(*dir_opener)(php_stream_wrapper *wrapper, const char *filename, const char *mode,
264 PHPAPI php_stream *_php_stream_alloc(const php_stream_ops *ops, void *abstract,
269 #define php_stream_get_resource_id(stream) ((php_stream *)(stream))->res->handle
278 if (((xstr) = (php_stream*)zend_fetch_resource2_ex((pzval), \
284 if (((xstr) = (php_stream*)zend_fetch_resource2((res), \
289 #define php_stream_from_res_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2((res)…
290 #define php_stream_from_zval_no_verify(xstr, pzval) (xstr) = (php_stream*)zend_fetch_resource2_ex((…
293 PHPAPI php_stream *php_stream_encloses(php_stream *enclosing, php_stream *enclosed);
295 PHPAPI int _php_stream_free_enclosed(php_stream *stream_enclosed, int close_options);
297 PHPAPI int php_stream_from_persistent_id(const char *persistent_id, php_stream **stream);
313 PHPAPI int _php_stream_free(php_stream *stream, int close_options);
318 PHPAPI int _php_stream_seek(php_stream *stream, zend_off_t offset, int whence);
322 PHPAPI zend_off_t _php_stream_tell(php_stream *stream);
325 PHPAPI ssize_t _php_stream_read(php_stream *stream, char *buf, size_t count);
328 PHPAPI zend_string *php_stream_read_to_str(php_stream *stream, size_t len);
330 PHPAPI ssize_t _php_stream_write(php_stream *stream, const char *buf, size_t count);
334 PHPAPI zend_result _php_stream_fill_read_buffer(php_stream *stream, size_t size);
337 PHPAPI ssize_t _php_stream_printf(php_stream *stream, const char *fmt, ...) PHP_ATTRIBUTE_FORMAT(pr…
342 PHPAPI bool _php_stream_eof(php_stream *stream);
345 PHPAPI int _php_stream_getc(php_stream *stream);
348 PHPAPI int _php_stream_putc(php_stream *stream, int c);
351 PHPAPI int _php_stream_flush(php_stream *stream, int closing);
354 PHPAPI int _php_stream_sync(php_stream *stream, bool data_only);
357 PHPAPI char *_php_stream_get_line(php_stream *stream, char *buf, size_t maxlen, size_t *returned_le…
361 PHPAPI zend_string *php_stream_get_record(php_stream *stream, size_t maxlen, const char *delim, siz…
364 PHPAPI bool _php_stream_puts(php_stream *stream, const char *buf);
367 PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb);
380 PHPAPI php_stream *_php_stream_opendir(const char *path, int options, php_stream_context *context S…
382 PHPAPI php_stream_dirent *_php_stream_readdir(php_stream *dirstream, php_stream_dirent *ent);
394 PHPAPI int _php_stream_set_option(php_stream *stream, int option, int value, void *ptrparam);
451 PHPAPI int _php_stream_truncate_set_size(php_stream *stream, size_t newsize);
484 PHPAPI size_t _php_stream_copy_to_stream(php_stream *src, php_stream *dest, size_t maxlen STREAMS_D…
486 PHPAPI zend_result _php_stream_copy_to_stream_ex(php_stream *src, php_stream *dest, size_t maxlen, …
492 PHPAPI zend_string *_php_stream_copy_to_mem(php_stream *src, size_t maxlen, int persistent STREAMS_…
496 PHPAPI ssize_t _php_stream_passthru(php_stream * src STREAMS_DC);
522 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err);
597 PHPAPI php_stream *_php_stream_open_wrapper_ex(const char *path, const char *mode, int options, zen…
599 PHPAPI const char *php_stream_locate_eol(php_stream *stream, zend_string *buf);
615 PHPAPI int _php_stream_make_seekable(php_stream *origstream, php_stream **newstream, int flags STRE…