zend_error( E_WARNING, "This function has been called with empty arguments");
zend_error() can be used to generate error messages. This function accepts two arguments; the first is the error type (see zend_errors.h), and the second is the error message.