Lines Matching refs:stream

401 +	php_stream *stream;
405 + stream = php_stream_open_wrapper((char *)fn, "rb", REPORT_ERRORS, NULL);
407 + if (stream == NULL) {
417 + for (ms->line = 1; (line = php_stream_get_line(stream, buffer , BUFSIZ, &len)) != NULL; ms->line+…
428 + php_stream_close(stream);
685 + php_stream *stream = NULL;
719 + stream = php_stream_open_wrapper((char *)fn, "rb", REPORT_ERRORS, NULL);
721 + if (!stream) {
727 + if (php_stream_stat(stream, &st) < 0) {
758 + if (php_stream_read(stream, map->p, (size_t)st.sb.st_size) != (size_t)st.sb.st_size) {
769 + php_stream_close(stream);
770 + stream = NULL;
844 + if (stream) {
845 + php_stream_close(stream);
889 + php_stream *stream;
899 + stream = php_stream_open_wrapper((char *)fn, "wb+", REPORT_ERRORS, NULL);
901 + if (!stream) {
910 + if (php_stream_write(stream,(const char *)&hdr, sizeof(hdr)) != (ssize_t)sizeof(hdr)) {
919 + if (php_stream_write(stream, (const char *)map->magic[i], len) != (ssize_t)len) {
926 + if (stream) {
927 + php_stream_close(stream);
1305 "user stream", "lockbytes", "property", "root storage" };
2367 +file_buffer(struct magic_set *ms, php_stream *stream, zend_stat_t *st,
2378 + if (stream) {
2384 + int _ret = php_stream_cast(stream, PHP_STREAM_AS_FD, (void **)&_fd, 0);
2887 +magic_stream(struct magic_set *ms, php_stream *stream)
2891 + return file_or_stream(ms, NULL, stream);
2896 +file_or_stream(struct magic_set *ms, const char *inname, php_stream *stream)
2951 + if (inname && !stream) {
2953 + stream = php_stream_open_wrapper((char *)inname, "rb", REPORT_ERRORS, NULL);
2954 + if (!stream) {
2971 + if (php_stream_stat(stream, &ssb) < 0) {
3017 + if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) {
3024 + if (file_buffer(ms, stream, &sb, inname, buf, CAST(size_t, nbytes)) == -1)
3035 + if (no_in_stream && stream) {
3036 + php_stream_close(stream);