Searched refs:path_length (Results 1 – 8 of 8) sorted by relevance
/php-src/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 | 1193 size_t path_length = ZSTR_LEN(str); in accel_make_persistent_key() local 1200 if (IS_ABSOLUTE_PATH(path, path_length)) { in accel_make_persistent_key() 1307 if (UNEXPECTED((size_t)(cwd_len + path_length + include_path_len + 2) >= sizeof(ZCG(_key)))) { in accel_make_persistent_key() 1317 memcpy(key, path, path_length); in accel_make_persistent_key() 1318 key[path_length] = ':'; in accel_make_persistent_key() 1319 key_length = path_length + 1; in accel_make_persistent_key()
|
H A D | zend_accelerator_module.c | 769 add_next_index_stringl(return_value, p->path, p->path_length);
|
/php-src/Zend/ |
H A D | zend_virtual_cwd.c | 1009 size_t path_length = strlen(path); in virtual_file_ex() local 1018 if (!path_length || path_length >= MAXPATHLEN-1) { in virtual_file_ex() 1092 path_length++; in virtual_file_ex() 1132 if (path_length == 2) { in virtual_file_ex() 1141 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex() 1143 if (path_length == (size_t)-1) { in virtual_file_ex() 1154 if (!start && !path_length) { in virtual_file_ex() 1158 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex() 1164 resolved_path[path_length] = 0; in virtual_file_ex() 1173 state->cwd_length = path_length; in virtual_file_ex() [all …]
|
/php-src/main/ |
H A D | fopen_wrappers.c | 691 size_t path_length = strlen(path); local 693 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1); 694 memcpy(pathbuf, path, path_length); 695 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; 696 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length); 697 pathbuf[path_length + exec_fname_length + 1] = '\0';
|
/php-src/main/streams/ |
H A D | plain_wrapper.c | 1698 size_t path_length = strlen(path); in _php_stream_fopen_with_path() local 1700 pathbuf = (char *) emalloc(exec_fname_length + path_length +1 +1); in _php_stream_fopen_with_path() 1701 memcpy(pathbuf, path, path_length); in _php_stream_fopen_with_path() 1702 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; in _php_stream_fopen_with_path() 1703 memcpy(pathbuf+path_length+1, exec_fname, exec_fname_length); in _php_stream_fopen_with_path() 1704 pathbuf[path_length + exec_fname_length +1] = '\0'; in _php_stream_fopen_with_path()
|
/php-src/ext/phar/ |
H A D | phar.c | 2133 size_t ptr_length, path_length = *new_len; in phar_fix_filepath() local 2135 if (PHAR_G(cwd_len) && use_cwd && path_length > 2 && path[0] == '.' && path[1] == '/') { in phar_fix_filepath() 2154 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2157 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2158 switch (path_length - (tok - path)) { in phar_fix_filepath() 2203 if (ptr == path + path_length) { in phar_fix_filepath() 2210 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2213 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2214 ptr_length = path_length - (tok - path); in phar_fix_filepath() 2215 ptr = path + path_length; in phar_fix_filepath()
|
Completed in 38 milliseconds