Searched refs:path_length (Results 1 – 8 of 8) sorted by relevance
/PHP-8.2/ext/opcache/ |
H A D | zend_accelerator_blacklist.c | 263 path_length = strlen(buf); in zend_accel_blacklist_loadone() 264 if (path_length > 0 && buf[path_length - 1] == '\n') { in zend_accel_blacklist_loadone() 265 buf[--path_length] = 0; in zend_accel_blacklist_loadone() 266 if (path_length > 0 && buf[path_length - 1] == '\r') { in zend_accel_blacklist_loadone() 267 buf[--path_length] = 0; in zend_accel_blacklist_loadone() 275 path_length--; in zend_accel_blacklist_loadone() 279 if (path_length > 0 && pbuf[0] == '\"' && pbuf[path_length - 1]== '\"') { in zend_accel_blacklist_loadone() 281 path_length -= 2; in zend_accel_blacklist_loadone() 284 if (path_length <= 0) { in zend_accel_blacklist_loadone() 299 path_length = strlen(real_path); in zend_accel_blacklist_loadone() [all …]
|
H A D | zend_accelerator_blacklist.h | 29 int path_length; member
|
H A D | ZendAccelerator.c | 1197 size_t path_length = ZSTR_LEN(str); in accel_make_persistent_key() local 1204 if (IS_ABSOLUTE_PATH(path, path_length)) { in accel_make_persistent_key() 1311 if (UNEXPECTED((size_t)(cwd_len + path_length + include_path_len + 2) >= sizeof(ZCG(_key)))) { in accel_make_persistent_key() 1321 memcpy(key, path, path_length); in accel_make_persistent_key() 1322 key[path_length] = ':'; in accel_make_persistent_key() 1323 key_length = path_length + 1; in accel_make_persistent_key()
|
H A D | zend_accelerator_module.c | 732 add_next_index_stringl(return_value, p->path, p->path_length);
|
/PHP-8.2/Zend/ |
H A D | zend_virtual_cwd.c | 1011 size_t path_length = strlen(path); in virtual_file_ex() local 1020 if (!path_length || path_length >= MAXPATHLEN-1) { in virtual_file_ex() 1080 path_length += state_cwd_length; in virtual_file_ex() 1094 path_length++; in virtual_file_ex() 1140 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex() 1142 if (path_length == (size_t)-1) { in virtual_file_ex() 1153 if (!start && !path_length) { in virtual_file_ex() 1157 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex() 1163 resolved_path[path_length] = 0; in virtual_file_ex() 1172 state->cwd_length = path_length; in virtual_file_ex() [all …]
|
/PHP-8.2/main/ |
H A D | fopen_wrappers.c | 679 size_t path_length = strlen(path); local 681 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1); 682 memcpy(pathbuf, path, path_length); 683 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; 684 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length); 685 pathbuf[path_length + exec_fname_length + 1] = '\0';
|
/PHP-8.2/main/streams/ |
H A D | plain_wrapper.c | 1683 size_t path_length = strlen(path); in _php_stream_fopen_with_path() local 1685 pathbuf = (char *) emalloc(exec_fname_length + path_length +1 +1); in _php_stream_fopen_with_path() 1686 memcpy(pathbuf, path, path_length); in _php_stream_fopen_with_path() 1687 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; in _php_stream_fopen_with_path() 1688 memcpy(pathbuf+path_length+1, exec_fname, exec_fname_length); in _php_stream_fopen_with_path() 1689 pathbuf[path_length + exec_fname_length +1] = '\0'; in _php_stream_fopen_with_path()
|
/PHP-8.2/ext/phar/ |
H A D | phar.c | 2137 size_t ptr_length, path_length = *new_len; in phar_fix_filepath() local 2139 if (PHAR_G(cwd_len) && use_cwd && path_length > 2 && path[0] == '.' && path[1] == '/') { in phar_fix_filepath() 2158 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2161 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2162 switch (path_length - (tok - path)) { in phar_fix_filepath() 2209 if (ptr == path + path_length) { in phar_fix_filepath() 2216 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2219 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2220 ptr_length = path_length - (tok - path); in phar_fix_filepath() 2221 ptr = path + path_length; in phar_fix_filepath()
|
Completed in 48 milliseconds