(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::__constructConstruit un nouveau gestionnaire de flux


streamWrapper::__construct ( void )

Appelé à la création du gestionnaire de flux, juste avant streamWrapper::stream_open().

Liste de paramètres

Cette fonction ne contient aucun paramètre.

add a note add a note

User Contributed Notes 2 notes

2 years ago
Note, shows that __construct() not being called in all cases was a bug, and it was fixed in August 2012.
codeslinger at compsalot dot com
6 years ago
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.
To Top