30.07.2012 Views

Reference Guide

Reference Guide

Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Zend Server <strong>Reference</strong> Manual<br />

Zend Monitor - PHP API<br />

Table of Contents<br />

288<br />

• Predefined Global Constants<br />

• Zend Monitor functions<br />

o zend_monitor_pass_error - Passes an error to the Monitor component with file and line<br />

details. This function is used in error handlers. An alternative is to use trigger_error.<br />

However, this function does not indicate the file name and line number: It only passes the<br />

error message.<br />

o zend_monitor_custom_event - Creates a special (custom) event that is generated from<br />

your code. The information collected consists of the three following parameters: Class,<br />

Text and User Data.<br />

o zend_monitor_set_aggregation_hint - Incorporates the locations of occurrences in the<br />

script when there are events that require those location for diagnosing the reason an<br />

event occured. Only events of the same type are aggregated. The collected information is<br />

viewed in the Zend Server Administration Interface.<br />

o zend_monitor_event_reporting - Enables or disables the event reporting of some event<br />

types by passing a bit-mask (as done by PHP's error_reporting function), but with the<br />

constants listed above, in ZEND_MONITOR_ET*. Note: You cannot enable events that<br />

are disabled in the Event Rules file

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!