note 94731 added to streamwrapper.construct

From: Date: Fri, 20 Nov 2009 18:27:10 +0000
Subject: note 94731 added to streamwrapper.construct
Groups: php.notes 
Request: Send a blank email to php-notes+get-163141@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 63.228.115.82 ---- Manual Page -- http://www.php.net/manual/en/streamwrapper.construct.php Edit -- https://master.php.net/note/edit/94731 Del: integrated -- https://master.php.net/note/delete/94731/integrated Del: useless -- https://master.php.net/note/delete/94731/useless Del: bad code -- https://master.php.net/note/delete/94731/bad+code Del: spam -- https://master.php.net/note/delete/94731/spam Del: non-english -- https://master.php.net/note/delete/94731/non-english Del: in docs -- https://master.php.net/note/delete/94731/in+docs Del: other reasons-- https://master.php.net/note/delete/94731 Reject -- https://master.php.net/note/reject/94731 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163141) next »