zval *template;
zval *object;
zval *item;
- zval *arguments;
+ zval *arguments = NULL;
zval *ret = NULL;
char *type = NULL;
int type_len = 0;
zend_bool ignoreStrictCheck = 0;
int free_ret = 0;
- if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ozzasbb", &template, &object, &item, &arguments, &type, &type_len, &isDefinedTest, &ignoreStrictCheck) == FAILURE) {
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ozz|asbb", &template, &object, &item, &arguments, &type, &type_len, &isDefinedTest, &ignoreStrictCheck) == FAILURE) {
return;
}
+ if (!type) {
+ type = "any";
+ }
+
/*
// array
if (Twig_TemplateInterface::METHOD_CALL !== $type) {