Lines Matching refs:castas
191 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err) in _php_stream_cast() argument
193 int flags = castas & PHP_STREAM_CAST_MASK; in _php_stream_cast()
194 castas &= ~PHP_STREAM_CAST_MASK; in _php_stream_cast()
197 if (ret && castas != PHP_STREAM_AS_FD_FOR_SELECT) { in _php_stream_cast()
209 if (castas == PHP_STREAM_AS_STDIO) { in _php_stream_cast()
222 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
263 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… in _php_stream_cast()
264 if (FAILURE == stream->ops->cast(stream, castas, ret)) { in _php_stream_cast()
278 int retcast = php_stream_cast(newstream, castas | flags, (void **)ret, show_err); in _php_stream_cast()
300 } else if (stream->ops->cast && stream->ops->cast(stream, castas, ret) == SUCCESS) { in _php_stream_cast()
313 …E_WARNING, "cannot represent a stream of type %s as a %s", stream->ops->label, cast_names[castas]); in _php_stream_cast()
331 if (castas == PHP_STREAM_AS_STDIO && ret) { in _php_stream_cast()