- Added function declaration and headers.
authorDerick Rethans <derick@derickrethans.nl>
Mon, 21 Mar 2011 11:43:00 +0000 (11:43 +0000)
committerDerick Rethans <derick@derickrethans.nl>
Mon, 21 Mar 2011 11:43:00 +0000 (11:43 +0000)
php_twig.h
twig.c

index 01d6610..4958d78 100644 (file)
@@ -34,6 +34,8 @@ extern zend_module_entry twig_module_entry;
 #include "TSRM.h"
 #endif
 
+PHP_FUNCTION(twig_template_get_attributes);
+
 PHP_MINIT_FUNCTION(twig);
 PHP_MSHUTDOWN_FUNCTION(twig);
 PHP_RINIT_FUNCTION(twig);
diff --git a/twig.c b/twig.c
index 9dc3dc7..ee1a21d 100644 (file)
--- a/twig.c
+++ b/twig.c
 #include "ext/standard/info.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[] = {
+       PHP_FE(twig_template_get_attributes, twig_template_get_attribute_args)
        {NULL, NULL, NULL}
 };
 
@@ -102,3 +113,7 @@ PHP_MINFO_FUNCTION(twig)
        DISPLAY_INI_ENTRIES();
 
 }
+
+PHP_FUNCTION(twig_template_get_attributes)
+{
+}