Skip to content

Commit 490960d

Browse files
committed
Avoid useless string duplication
1 parent e8294cd commit 490960d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_builtin_functions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ ZEND_FUNCTION(define)
839839
RETURN_FALSE;
840840
}
841841

842-
ZVAL_DUP(&c.value, val);
842+
ZVAL_COPY(&c.value, val);
843843
zval_ptr_dtor(&val_free);
844844
register_constant:
845845
c.flags = case_sensitive; /* non persistent */

0 commit comments

Comments
 (0)