summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2015-01-31 23:52:10 -0800
committerStanislav Malyshev <stas@php.net>2015-01-31 23:52:10 -0800
commit911f0ea4178a82c1cf16f0296a9ac25378f5315e (patch)
treeda41432aabd94c2ccd0e6d150335cd232bd745d4 /ext/reflection/php_reflection.c
parent50703c900f3b75af2e2973dfd53c05f69cddec91 (diff)
parent662184095182b2b9c23313350d99beda25eb3c39 (diff)
downloadphp-git-911f0ea4178a82c1cf16f0296a9ac25378f5315e.tar.gz
Merge branch 'pull-request/1012'
* pull-request/1012: Fix uninitalized variables reads. See CWE-457 for more info.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 5dddd05cea..9f5ad8cdd4 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3996,6 +3996,7 @@ static int _adddynproperty(zval *ptr, int num_args, va_list args, zend_hash_key
if (zend_get_property_info(ce, hash_key->key, 1) == NULL) {
zend_property_info property_info;
+ property_info.doc_comment = NULL;
property_info.flags = ZEND_ACC_IMPLICIT_PUBLIC;
property_info.name = hash_key->key;
property_info.ce = ce;