projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4e899ca
)
Made properties return properly.
author
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 12:06:13 +0000 (13:06 +0100)
committer
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 12:06:13 +0000 (13:06 +0100)
twig.c
patch
|
blob
|
history
diff --git
a/twig.c
b/twig.c
index
02a95c7
..
ee98590
100644
(file)
--- a/
twig.c
+++ b/
twig.c
@@
-656,7
+656,8
@@
PHP_FUNCTION(twig_template_get_attributes)
}
convert_to_string(item);
- return_value = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong
+ ret = TWIG_PROPERTY(object, Z_STRVAL_P(item)); // this is obviously wrong
+ RETVAL_ZVAL(ret, 1, 0);
}
}
/*