stream_notification_callback
PHP 5 >= 5.2.0, PHP 7, PHP 8
stream_notification_callback - A callback function for the notification context parameter
Manual
int$notification_code,
int$severity,
string$message,
int$message_code,
int$bytes_transferred,
int$bytes_max
): void
A callable function, used by the notification context parameter, called during an event.
Note:
This is not a real function, only a prototype of how the function should be.
Parameters
- notification_code
-
One of the STREAM_NOTIFY_* notification constants.
- severity
-
One of the STREAM_NOTIFY_SEVERITY_* notification constants.
- message
-
Passed if a descriptive message is available for the event.
- message_code
-
Passed if a descriptive message code is available for the event.
The meaning of this value is dependent on the specific wrapper in use.
- bytes_transferred
-
If applicable, the bytes_transferred will be populated.
- bytes_max
-
If applicable, the bytes_max will be populated.
Return Values
No value is returned.