Function Error

Function Errors are returned from functions and therefore offer more specific information about the root of the error that does not always arise from PHP errors.

 

This type of Event is usually used in QA and Production for identifying run-time events, as opposed to PHP errors that identify code-related/ syntactical events.

 

Function Errors can prove to be invaluable to an organization as they provide a different perspective on problems (view the outside problems through the eyes of PHP). Despite the fact that the code may be running okay, this Event indicates what other outside problems (i.e. network, database, web services, file system etc.) you may have, based on the PHP function’s behavior. Issues like these used to be difficult to reproduce however with the complete audit trail and full problem context, Function Errors can be easily reproduced to a level of accuracy that mirrors the actual time of occurrence.

 

Description:

Generate a severe event when an error in one of the specified PHP Functions (built-in or user-defined) fails (returns a FALSE value).

 

To add a function, enter the name into the + field and press Add (+).

There are three ways to monitor PHP functions:

  1. Specify the function name, object methods can also be used (for example, bar::foo).

  2. Use wild cards (*) to specify a range of function names for example mysql_* will select all functions beginning with mysql_.

  3. Specify the full path to a file containing a list of functions, each in a new line.

 

Note:

Database related functions are directed and reported as Database Errors (see the "Database Error" event type).

 

Watched Functions File Event Types

The Watched Functions file can added Function Error and Slow Function Execution event types (PHP Intelligence | Configure Alert Rules) by entering a function in the field and pressing Add.

 

Return to Choosing and Defining Alert Rules