diff options
-rw-r--r-- | Zend/zend_compile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 06ba979436..e1c2637b52 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -42,6 +42,9 @@ ZEND_API zend_executor_globals executor_globals; static void zend_duplicate_property_info(zend_property_info *property_info) { property_info->name = estrndup(property_info->name, property_info->name_length); + if (property_info->doc_comment) { + property_info->doc_comment = estrndup(property_info->doc_comment, property_info->doc_comment_len); + } } |