merged branch tucksaun/fix-issue-1143 (PR #1147)

This PR was merged into the master branch.

Discussion
----------

Fix issue #1143

Commits
-------

5042159 [ext] access static properties, fixed #1143
dfc335f Added test case for issue #1143
This commit is contained in:
Fabien Potencier
2013-08-04 14:54:06 +02:00
2 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -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;
}