From 042c937f6915876a1aec014394daa1db8f75cea6 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 1 Apr 2014 17:10:15 +0400 Subject: Use STR_COPY() instead of STR_DUP() where possible --- ext/reflection/php_reflection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 869a68d45c..efb32713bd 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -276,7 +276,7 @@ static zend_function *_copy_function(zend_function *fptr TSRMLS_DC) /* {{{ */ zend_function *copy_fptr; copy_fptr = emalloc(sizeof(zend_function)); memcpy(copy_fptr, fptr, sizeof(zend_function)); - copy_fptr->internal_function.function_name = STR_DUP(fptr->internal_function.function_name, 0); + copy_fptr->internal_function.function_name = STR_COPY(fptr->internal_function.function_name); return copy_fptr; } else { /* no copy needed */ -- cgit v1.2.1