PHP: php_stream_can_cast - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

php_stream_is_persistent php_stream_cast

Last updated: Fri, 26 Jan 2007

view this page in

# php_stream_can_cast

php_stream_can_cast -- Determines if a stream can be converted into another form, such as a FILE* or socket

## Description

int php_stream_can_cast ( php_stream * stream, int castas )

This function is equivalent to calling php_stream_cast() with `ret` set to NULL and `flags` set to 0. It returns `SUCCESS` if the stream can be converted into the form requested, or `FAILURE` if the conversion cannot be performed.

> Замечание: Although this function will not perform the conversion, some internal stream state *might* be changed by this call.

> Замечание: You must explicitly compare the return value of this function with one of the constants, as described in php_stream_cast().

See also php_stream_cast() and php_stream_is().

add a note User Contributed Notes
php_stream_can_cast
There are no user contributed notes for this page.
php_stream_is_persistent php_stream_cast

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST