From 19aea2c2b90c57799da648829a27afb9add6f062 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Sat, 15 Nov 2008 13:45:31 +0000 Subject: [PATCH] Documented new user-space stream wrapper methods git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@269048 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/stream-wrapper-register.xml | 92 ++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/reference/stream/functions/stream-wrapper-register.xml b/reference/stream/functions/stream-wrapper-register.xml index e499a2b9da..2d2c9d8f0d 100644 --- a/reference/stream/functions/stream-wrapper-register.xml +++ b/reference/stream/functions/stream-wrapper-register.xml @@ -1,5 +1,5 @@ - + stream_wrapper_register @@ -204,6 +204,64 @@ calls on the stream and should return an array containing the same values as appropriate for the stream. + + + resourcestream_cast + intcast_as + + + This method is called in response to stream_select + calls on the stream and should return the underlying stream resource used + by the wrapper, or &false;. The + cast_as parameter can be + STREAM_CAST_FOR_SELECT when + stream_select is calling + stream_cast or + STREAM_CAST_AS_STREAM when + stream_cast is called for other uses. + + + + Userspace wrapper stream_cast method is not supported prior to + PHP 5.3.0. + + + + + boolstream_set_option + intoption + intarg1 + intarg2 + + + This method is called to set options on the stream. Possible values + for option are: + + STREAM_OPTION_BLOCKING: The method is called + in response to stream_set_blocking. + arg1 is the requested blocking mode. + STREAM_OPTION_READ_TIMEOUT: The method is + called in response to stream_set_timeout. + arg1 is the timeout in seconds, and + arg2 is the timeout in microseconds. + STREAM_OPTION_WRITE_BUFFER: The method is + called in response to stream_set_write_buffer. + arg1 is the buffer mode + (STREAM_BUFFER_NONE or + STREAM_BUFFER_FULL) and arg2 + is the requested buffer size. + + + + stream_set_option should return &false; on failure or + if the option is not implemented, &true; otherwise. + + + + Userspace wrapper stream_set_option method is not supported prior to + PHP 5.3.0. + + boolunlink @@ -500,6 +558,38 @@ var_dump($myvar); + + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 5.0.0 + + Added unlink, rename, + mkdir and rmdir methods. + + + + 5.3.0 + + Added stream_cast and stream_set_option methods. + + + + + + + +