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

search for in the

streamWrapper::dir_closedir> <streamWrapper
Last updated: Fri, 13 Nov 2009

view this page in

streamWrapper::__construct

(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::__construct新しいストリームラッパーを作成する

説明

streamWrapper::__construct ( void )

ストリームラッパーをオープンしたときに、 streamWrapper::stream_open の直前にコールされます。

パラメータ

この関数にはパラメータはありません。



add a note add a note User Contributed Notes
streamWrapper::__construct
codeslinger at compsalot dot com
20-Nov-2009 06:27
Just to clarify what was said above, as far as I can tell,  __construct is *only* called before stream_open.

It does not get called for other functions such as stream::url_stat  or stream::unlink, even though those functions do create a new object.

This behavior is contrary to normal expectations for php object creation.  But based on the documentation above I can only assume that it is by design.

streamWrapper::dir_closedir> <streamWrapper
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites