next up previous contents
Next: php::set_message_function Up: Function Reference Previous: php::load   Contents

php::set_error_function

#include "php_cxx.h"

void 
set_error_function(void (*error_function)(const char *));

Description: This function controls the behavior of error output from the php object. This class of output contains all the error strings generated by the php object itself as it attempts to process the commands given. Such errors could result from improper argument passing, illegal function calling, or any generic malfunction in the core PHP interpreter code. The default behavior of the php libraries is to print this to stderr prepended with the string ``PHP ERROR:.'' NOTE: The optional type mismatch errors in the PHP object fall into this class of output. If set, php will call error_function with a const char * string containing the error.



Andrew Bosworth 2008-03-24