Skip to content

Commit 60b2d0d

Browse files
committed
ext/phar: mark last_phar_name global cache field as const
As this is derived from a live char* pointer where we don't have the ownership.
1 parent c5a3f46 commit 60b2d0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/phar/phar_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ZEND_BEGIN_MODULE_GLOBALS(phar)
146146
char *openssl_privatekey;
147147
uint32_t openssl_privatekey_len;
148148
/* phar_get_archive cache */
149-
char* last_phar_name;
149+
const char *last_phar_name;
150150
uint32_t last_phar_name_len;
151151
uint32_t last_alias_len;
152152
const char* last_alias;

0 commit comments

Comments
 (0)