- Added function declaration and headers.

This commit is contained in:
Derick Rethans
2011-03-21 11:43:00 +00:00
parent 430aecfdc0
commit e19701d75b
2 changed files with 17 additions and 0 deletions
+2
View File
@@ -34,6 +34,8 @@ extern zend_module_entry twig_module_entry;
#include "TSRM.h" #include "TSRM.h"
#endif #endif
PHP_FUNCTION(twig_template_get_attributes);
PHP_MINIT_FUNCTION(twig); PHP_MINIT_FUNCTION(twig);
PHP_MSHUTDOWN_FUNCTION(twig); PHP_MSHUTDOWN_FUNCTION(twig);
PHP_RINIT_FUNCTION(twig); PHP_RINIT_FUNCTION(twig);
+15
View File
@@ -25,7 +25,18 @@
#include "ext/standard/info.h" #include "ext/standard/info.h"
#include "php_twig.h" #include "php_twig.h"
ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args, ZEND_SEND_BY_VAL, ZEND_RETURN_VALUE, 7)
ZEND_ARG_INFO(0, template)
ZEND_ARG_INFO(0, object)
ZEND_ARG_INFO(0, item)
ZEND_ARG_INFO(0, arguments)
ZEND_ARG_INFO(0, type)
ZEND_ARG_INFO(0, noStrictCheck)
ZEND_ARG_INFO(0, line)
ZEND_END_ARG_INFO()
zend_function_entry twig_functions[] = { zend_function_entry twig_functions[] = {
PHP_FE(twig_template_get_attributes, twig_template_get_attribute_args)
{NULL, NULL, NULL} {NULL, NULL, NULL}
}; };
@@ -102,3 +113,7 @@ PHP_MINFO_FUNCTION(twig)
DISPLAY_INI_ENTRIES(); DISPLAY_INI_ENTRIES();
} }
PHP_FUNCTION(twig_template_get_attributes)
{
}