Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3956

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>php_stream_can_cast</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Streams Common API Reference"
HREF="stream.common-api.html"><LINK
REL="PREVIOUS"
TITLE="php_stream_cast"
HREF="streams.php-stream-cast.html"><LINK
REL="NEXT"
TITLE="php_stream_is_persistent"
HREF="streams.php-stream-is-persistent.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="streams.php-stream-cast.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="streams.php-stream-is-persistent.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="streams.php-stream-can-cast"
></A
>php_stream_can_cast</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN130160"
></A
><P
>    (no version information, might be only in CVS)</P
>php_stream_can_cast&nbsp;--&nbsp;Determines if a stream can be converted into another form, such as a FILE* or socket</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN130163"
></A
><H2
>Description</H2
>int <B
CLASS="methodname"
>php_stream_can_cast</B
> ( php_stream * stream, int castas)<BR
></BR
><P
>&#13;     This function is equivalent to calling <B
CLASS="function"
>php_stream_cast()</B
> with <VAR
CLASS="parameter"
>ret</VAR
>
     set to NULL and <VAR
CLASS="parameter"
>flags</VAR
> set to 0.
     It returns <TT
CLASS="constant"
><B
>SUCCESS</B
></TT
> if the stream can be converted into the form requested, or
     <TT
CLASS="constant"
><B
>FAILURE</B
></TT
> if the conversion cannot be performed.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
      Although this function will not perform the conversion, some internal stream state *might* be
      changed by this call.
     </P
></BLOCKQUOTE
></DIV
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Not&#227;: </B
>
      You must explicitly compare the return value of this function with one of the constants, as described
      in <B
CLASS="function"
>php_stream_cast()</B
>.
      </P
></BLOCKQUOTE
></DIV
><P
>&#13;     See also <B
CLASS="function"
>php_stream_cast()</B
> and <B
CLASS="function"
>php_stream_is()</B
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="streams.php-stream-cast.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="streams.php-stream-is-persistent.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>php_stream_cast</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="stream.common-api.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>php_stream_is_persistent</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>