mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 10:56:38 +00:00
Moved zval declaration
This commit is contained in:
+2
-2
@@ -702,6 +702,8 @@ PHP_FUNCTION(twig_template_get_attributes)
|
|||||||
zend_bool isDefinedTest = 0;
|
zend_bool isDefinedTest = 0;
|
||||||
zend_bool ignoreStrictCheck = 0;
|
zend_bool ignoreStrictCheck = 0;
|
||||||
int free_ret = 0;
|
int free_ret = 0;
|
||||||
|
zval *tmp_self_cache;
|
||||||
|
|
||||||
|
|
||||||
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ozz|asbb", &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;
|
return;
|
||||||
@@ -816,8 +818,6 @@ PHP_FUNCTION(twig_template_get_attributes)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
zval *tmp_self_cache;
|
|
||||||
|
|
||||||
if (Z_TYPE_P(object) == IS_OBJECT) {
|
if (Z_TYPE_P(object) == IS_OBJECT) {
|
||||||
char *class_name = NULL;
|
char *class_name = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user