Lines Matching refs:keylen
169 size_t keylen = ZSTR_LEN(str_key); in phar_make_dirstream() local
170 if (keylen <= dirlen) { in phar_make_dirstream()
171 if (keylen == 0 || keylen < dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
183 const char *has_slash = memchr(ZSTR_VAL(str_key), '/', keylen); in phar_make_dirstream()
186 keylen = has_slash - ZSTR_VAL(str_key); in phar_make_dirstream()
188 entry = safe_emalloc(keylen, 1, 1); in phar_make_dirstream()
189 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
190 entry[keylen] = '\0'; in phar_make_dirstream()
207 const char *has_slash = memchr(save, '/', keylen - dirlen - 1); in phar_make_dirstream()
213 keylen = has_slash - save - dirlen - 1; in phar_make_dirstream()
214 entry[keylen] = '\0'; in phar_make_dirstream()
218 entry = safe_emalloc(keylen - dirlen, 1, 1); in phar_make_dirstream()
219 memcpy(entry, save + dirlen + 1, keylen - dirlen - 1); in phar_make_dirstream()
220 entry[keylen - dirlen - 1] = '\0'; in phar_make_dirstream()
221 keylen = keylen - dirlen - 1; in phar_make_dirstream()
224 if (keylen) { in phar_make_dirstream()
234 zend_hash_str_update(data, entry, keylen, &dummy); in phar_make_dirstream()