Lines Matching refs:castas
189 PHPAPI int _php_stream_cast(php_stream *stream, int castas, void **ret, int show_err) in _php_stream_cast() argument
191 int flags = castas & PHP_STREAM_CAST_MASK; in _php_stream_cast()
192 castas &= ~PHP_STREAM_CAST_MASK; in _php_stream_cast()
195 if (ret && castas != PHP_STREAM_AS_FD_FOR_SELECT) { in _php_stream_cast()
207 if (castas == PHP_STREAM_AS_STDIO) { in _php_stream_cast()
220 stream->ops->cast(stream, castas, ret) == SUCCESS in _php_stream_cast()
261 …if (!php_stream_is_filtered(stream) && stream->ops->cast && stream->ops->cast(stream, castas, NULL… 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()
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()