Lines Matching refs:ret
63 int ret; in stream_cookie_reader() local
65 ret = php_stream_read((php_stream*)cookie, buffer, size); in stream_cookie_reader()
66 return ret; in stream_cookie_reader()
92 ssize_t ret; in stream_cookie_reader() local
94 ret = php_stream_read(((php_stream *)cookie), buffer, size); in stream_cookie_reader()
95 return ret; in stream_cookie_reader()
189 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err) in _php_stream_cast() argument
195 if (ret && castas != PHP_STREAM_AS_FD_FOR_SELECT) { in _php_stream_cast()
209 if (ret) { in _php_stream_cast()
210 *(FILE**)ret = stream->stdiocast; in _php_stream_cast()
220 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
227 if (ret == NULL) { in _php_stream_cast()
234 *(FILE**)ret = fopencookie(stream, fixed_mode, PHP_STREAM_COOKIE_FUNCTIONS); in _php_stream_cast()
237 if (*ret != NULL) { in _php_stream_cast()
246 zend_fseek(*ret, pos, SEEK_SET); in _php_stream_cast()
262 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast()
276 int retcast = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); in _php_stream_cast()
279 rewind(*(FILE**)ret); in _php_stream_cast()
298 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast()
329 if (castas == PHP_STREAM_AS_STDIO && ret) { in _php_stream_cast()
330 stream->stdiocast = *(FILE**)ret; in _php_stream_cast()