PHP Doku:: Constructs a new stream wrapper - streamwrapper.construct.html

Verlauf / Chronik / History: (5) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige GrunderweiterungenStreamsThe streamWrapper classstreamWrapper::__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

The streamWrapper class

<<The streamWrapper class

streamWrapper::dir_closedir>>

streamWrapper::__construct

(PHP 4 >= 4.3.2, PHP 5)

streamWrapper::__constructConstructs a new stream wrapper

Beschreibung

streamWrapper::__construct ( void )

Called when opening the stream wrapper, right before streamWrapper::stream_open().

Parameter-Liste

Diese Funktion hat keine Parameter.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
codeslinger at compsalot dot com
20.11.2009 19: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.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)