Home > PHP > Function > Streams > stream_notification_callback()

stream_notification_callback()

stream_notification_callback - A callback function for the
notificationcontext paramater

Syntax

stream_notification_callback (int $notification_code, int $severity, string $message, int $message_code, int $bytes_transferred, int $bytes_max)

Arguments

  • 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.

Description

A callback function, used by the notification context parameter, called during an event.

Version

PHP 5.2.0

Return value

No value is returned.