From: Derick Rethans Date: Mon, 21 Mar 2011 11:43:00 +0000 (+0000) Subject: - Added function declaration and headers. X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=e19701d75bf11413f5825685f565eb9bf7d24fe1;p=konrad%2Ftwig.git - Added function declaration and headers. --- diff --git a/php_twig.h b/php_twig.h index 01d6610..4958d78 100644 --- a/php_twig.h +++ b/php_twig.h @@ -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 --- a/twig.c +++ b/twig.c @@ -25,7 +25,18 @@ #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) +{ +}