diff options
| author | Marcus Boerger <helly@php.net> | 2006-05-27 18:39:53 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2006-05-27 18:39:53 +0000 |
| commit | 493f39da2d481e743a13b606525fb0fda8319644 (patch) | |
| tree | 13c2d74eb9910f40e689b465d8ef00a1518be577 /Zend/zend_API.c | |
| parent | ccfc0d9d991300e5fdc8623fb3ffc5d35d8c427d (diff) | |
| download | php-git-493f39da2d481e743a13b606525fb0fda8319644.tar.gz | |
- MFH: Fix bug #37212 (Access to protected property of common base class)
By adding "zend_class_entry *ce" to struct zend_property_info;
Diffstat (limited to 'Zend/zend_API.c')
| -rw-r--r-- | Zend/zend_API.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 3c7f213c71..caf613f020 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -2376,6 +2376,8 @@ ZEND_API int zend_declare_property_ex(zend_class_entry *ce, char *name, int name property_info.doc_comment = doc_comment; property_info.doc_comment_len = doc_comment_len; + + property_info.ce = ce; zend_hash_update(&ce->properties_info, name, name_length + 1, &property_info, sizeof(zend_property_info), NULL); |
