projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
dfc335f
)
[ext] access static properties, fixed #1143
author
Tugdual Saunier
<tugdual.saunier@gmail.com>
Sun, 4 Aug 2013 10:10:59 +0000 (12:10 +0200)
committer
Tugdual Saunier
<tugdual.saunier@gmail.com>
Sun, 4 Aug 2013 10:20:23 +0000 (12:20 +0200)
Twig extension access static properties wheras it should not
ext/twig/twig.c
patch
|
blob
|
history
diff --git
a/ext/twig/twig.c
b/ext/twig/twig.c
index
0e5a0ef
..
26b1fe6
100644
(file)
--- a/
ext/twig/twig.c
+++ b/
ext/twig/twig.c
@@
-698,7
+698,7
@@
static int twig_add_property_to_class(void *pDest APPLY_TSRMLS_DC, int num_args,
zend_property_info *pptr = (zend_property_info *) pDest;
APPLY_TSRMLS_FETCH();
- if (!(pptr->flags & ZEND_ACC_PUBLIC)) {
+ if (!(pptr->flags & ZEND_ACC_PUBLIC) || (pptr->flags & ZEND_ACC_STATIC)) {
return 0;
}