(PHP 4 >= 4.3.2, PHP 5)
Allows you to implement your own protocol handlers and streams for use with all the other filesystem functions (such as fopen(), fread() etc.).
Notă:
This is NOT a real class, only a prototype of how a class defining its own protocol should be.
Notă:
Implementing the methods in other ways then described here can lead to undefined behaviour.
An instance of this class is initialized as soon as a stream function tries to access the protocol it is associated with.
The current context, or NULL
if no
context was passed to the caller function.
Use the stream_context_get_options() to parse the context.
Notă:
This property must be public so PHP can populate it with the actual context resource.
Versiunea | Descriere |
---|---|
5.0.0 | Added the context property. |