Uses php_error_docref() instead of zend_error().
Fixed return value when  zend_parse_parameters() == FAILURE