projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c941552
)
Moved zval declaration
author
Arjen Brouwer
<arjenjb@gmail.com>
Mon, 21 Nov 2011 22:57:44 +0000 (23:57 +0100)
committer
Arjen Brouwer
<arjenjb@gmail.com>
Mon, 21 Nov 2011 22:57:44 +0000 (23:57 +0100)
ext/twig/twig.c
patch
|
blob
|
history
diff --git
a/ext/twig/twig.c
b/ext/twig/twig.c
index
6bf8265
..
83e5d6c
100644
(file)
--- a/
ext/twig/twig.c
+++ b/
ext/twig/twig.c
@@
-702,6
+702,8
@@
PHP_FUNCTION(twig_template_get_attributes)
zend_bool isDefinedTest = 0;
zend_bool ignoreStrictCheck = 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) {
return;
@@
-816,8
+818,6
@@
PHP_FUNCTION(twig_template_get_attributes)
}
}
*/
- zval *tmp_self_cache;
-
if (Z_TYPE_P(object) == IS_OBJECT) {
char *class_name = NULL;