mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
[ext] access static properties, fixed #1143
Twig extension access static properties wheras it should not
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user