|
com_event_sinkConnect events from a COM object to a PHP object Description
bool com_event_sink(variant
$variant , object $sink_object , arraystringnull $sink_interface = null )
Instructs COM to sink events generated by
Be careful how you use this feature; if you are doing something similar to the example below, then it doesn't really make sense to run it in a web server context. Parameters
Return Values
Returns Changelog
Examples
Example #1 COM event sink example
NotesCaution
Prior to PHP 8.0.0, calling exit from any of the event handlers is not supported, and may cause PHP to hang. This can be worked around by throwing an exception from the event handler, catching the exception in the main code, and calling exit from there. See Also
|