next up previous contents
Next: php::set_output_function Up: Function Reference Previous: php::set_error_function   Contents

php::set_message_function

#include "php_cxx.h"

void 
set_message_function(void (*message_function)(const char *));

Description: This function controls the behavior of message output from the php object. This class of output contains all the strings which represent errors or warnings produced in the interpretation of PHP but not fatal errors for the PHP interpreter itself or the php object. Good examples are calling an undefined function in PHP or using a non-array in the PHP foreach construct. The default behavior of the php libraries is to print these strings to stderr prepended with the string ``PHP MESSAGE:.'' If set, php will call message_function with a const char * string containing the message.



Andrew Bosworth 2008-03-24