Skip to content

Commit 3a623c6

Browse files
committed
ext/phar: avoid redundant allocation by using zend_string for alias
1 parent 33f5cb7 commit 3a623c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/phar/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2024,7 +2024,7 @@ static void phar_copy_cached_phar(phar_archive_data **pphar) /* {{{ */
20242024
phar->ext = phar->fname + (phar->ext - fname);
20252025

20262026
if (phar->alias) {
2027-
phar->alias = zend_string_copy(phar->alias);
2027+
zend_string_addref(phar->alias);
20282028
}
20292029

20302030
if (phar->signature) {

0 commit comments

Comments
 (0)