Skip to content

Commit

Permalink
TStreamNotificationCallback for observing fopen/file_get_contents fil…
Browse files Browse the repository at this point in the history
…e connection/download (#968)

* #966 TWeakCollection can insert array of handlers.

* #904 TStreamNotificationCallback for observing file connections

This creates a `fopen`, `stream_socket_client` and `stream_socket_server` context.  The class itself is invokable and is what gets notified.  Multiple callbacks can be implemented or specific events can be handled..   The context creation method TStreamNotificationCallback::filterStreamContext() can instance new TStreamNotificationCallback (and sub-classes) and register its event handlers and properties.

This depends on #966 (#967)

* Update TStreamNotificationCallback.php

using constant
  • Loading branch information
belisoful authored Jun 5, 2023
1 parent 103db3e commit eb43990
Show file tree
Hide file tree
Showing 4 changed files with 939 additions and 0 deletions.
Loading

0 comments on commit eb43990

Please sign in to comment.