Lines Matching refs:keylen
186 uint32_t keylen; in phar_make_dirstream() local
206 keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
207 if (keylen <= (uint32_t)dirlen) { in phar_make_dirstream()
208 if (keylen == 0 || keylen < (uint32_t)dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
218 if (keylen >= sizeof(".phar")-1 && !memcmp(ZSTR_VAL(str_key), ".phar", sizeof(".phar")-1)) { in phar_make_dirstream()
226 if (NULL != (found = (char *) memchr(ZSTR_VAL(str_key), '/', keylen))) { in phar_make_dirstream()
230 keylen = found - ZSTR_VAL(str_key); in phar_make_dirstream()
231 entry[keylen] = '\0'; in phar_make_dirstream()
233 entry = (char *) safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
234 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
235 entry[keylen] = '\0'; in phar_make_dirstream()
259 if (NULL != (found = (char *) memchr(save, '/', keylen - dirlen - 1))) { in phar_make_dirstream()
264 keylen = found - save - dirlen - 1; in phar_make_dirstream()
265 entry[keylen] = '\0'; in phar_make_dirstream()
269 entry = (char *) safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
270 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
271 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
272 keylen = keylen - dirlen - 1; in phar_make_dirstream()
275 if (keylen) { in phar_make_dirstream()
276 phar_add_empty(data, entry, keylen); in phar_make_dirstream()