Lines Matching refs:castas
200 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err TSRMLS_DC) in _php_stream_cast() argument
202 int flags = castas & PHP_STREAM_CAST_MASK; in _php_stream_cast()
203 castas &= ~PHP_STREAM_CAST_MASK; in _php_stream_cast()
206 if (ret && castas != PHP_STREAM_AS_FD_FOR_SELECT) { in _php_stream_cast()
218 if (castas == PHP_STREAM_AS_STDIO) { in _php_stream_cast()
231 stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS in _php_stream_cast()
272 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast()
273 if (FAILURE == stream->ops->cast(stream, castas, ret TSRMLS_CC)) { in _php_stream_cast()
287 int retcast = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); in _php_stream_cast()
309 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret TSRMLS_CC) == SUCCESS) { in _php_stream_cast()
322 …E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops->label, cast_names[castas]); in _php_stream_cast()
340 if (castas == PHP_STREAM_AS_STDIO && ret) { in _php_stream_cast()