We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d50b91f commit bcdadd5Copy full SHA for bcdadd5
1 file changed
ext/opcache/ZendAccelerator.c
@@ -1238,7 +1238,7 @@ zend_string *accel_make_persistent_key(zend_string *str)
1238
/* pass */
1239
} else {
1240
const char *include_path = NULL, *cwd = NULL;
1241
- int include_path_len = 0, cwd_len = 0;
+ size_t include_path_len = 0, cwd_len = 0;
1242
const zend_string *parent_script = NULL;
1243
1244
if (EXPECTED(ZCG(cwd_key_len))) {
@@ -1345,7 +1345,7 @@ zend_string *accel_make_persistent_key(zend_string *str)
1345
char *key = ZSTR_VAL(ZCG(key));
1346
memcpy(key, path, path_length);
1347
key[path_length] = ':';
1348
- int key_length = path_length + 1;
+ size_t key_length = path_length + 1;
1349
memcpy(key + key_length, cwd, cwd_len);
1350
key_length += cwd_len;
1351
0 commit comments