summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2014-02-26 12:52:43 +0800
committerXinchen Hui <laruence@gmail.com>2014-02-26 12:52:43 +0800
commit66b7f6722d16a261243390ed2afdc97de15b5f93 (patch)
treed59b5611b79c442e471094e9c3e2951965a4d397 /Zend/zend.c
parent80a178015d6b162ff0ba7a8e8f5a08c88829cc3c (diff)
parent4a1ecf0e8b04363901c92aea55a203fc73a24b95 (diff)
downloadphp-git-66b7f6722d16a261243390ed2afdc97de15b5f93.tar.gz
Merge branch 'refactoring2' of github.com:zendtech/php into refactoring2
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index f7713102e8..19401d2e03 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -228,7 +228,7 @@ ZEND_API void zend_make_printable_zval(zval *expr, zval *expr_copy, int *use_cop
if (Z_TYPE_P(expr) == IS_REFERENCE) {
expr = Z_REFVAL_P(expr);
if (Z_TYPE_P(expr) == IS_STRING) {
- ZVAL_STR(expr_copy, Z_STR_P(expr));
+ ZVAL_STR(expr_copy, STR_COPY(Z_STR_P(expr)));
*use_copy = 1;
return;
}