Searched refs:path_length (Results 1 – 9 of 9) sorted by relevance
/PHP-7.1/ext/opcache/ |
H A D | zend_accelerator_blacklist.c | 234 int path_length, blacklist_path_length; in zend_accel_blacklist_loadone() local 253 path_length = strlen(buf); in zend_accel_blacklist_loadone() 254 if (path_length > 0 && buf[path_length - 1] == '\n') { in zend_accel_blacklist_loadone() 255 buf[--path_length] = 0; in zend_accel_blacklist_loadone() 256 if (path_length > 0 && buf[path_length - 1] == '\r') { in zend_accel_blacklist_loadone() 257 buf[--path_length] = 0; in zend_accel_blacklist_loadone() 265 path_length--; in zend_accel_blacklist_loadone() 271 path_length -= 2; in zend_accel_blacklist_loadone() 274 if (path_length == 0) { in zend_accel_blacklist_loadone() 289 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.h | 325 char *accel_make_persistent_key(const char *path, int path_length, int *key_len);
|
H A D | ZendAccelerator.c | 980 char *accel_make_persistent_key(const char *path, int path_length, int *key_len) in accel_make_persistent_key() argument 985 if (IS_ABSOLUTE_PATH(path, path_length)) { in accel_make_persistent_key() 1090 if (UNEXPECTED((size_t)(cwd_len + path_length + include_path_len + 2) >= sizeof(ZCG(key)))) { in accel_make_persistent_key() 1099 memcpy(ZCG(key), path, path_length); in accel_make_persistent_key() 1100 ZCG(key)[path_length] = ':'; in accel_make_persistent_key() 1101 key_length = path_length + 1; in accel_make_persistent_key() 1136 *key_len = path_length; in accel_make_persistent_key()
|
H A D | zend_accelerator_module.c | 676 add_next_index_stringl(return_value, p->path, p->path_length);
|
/PHP-7.1/Zend/ |
H A D | zend_virtual_cwd.c | 1288 if (path_length <= 0 || path_length >= MAXPATHLEN-1) { in virtual_file_ex() 1343 path_length += state_cwd_length; in virtual_file_ex() 1357 path_length++; in virtual_file_ex() 1414 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex() 1416 if (path_length < 0) { in virtual_file_ex() 1421 if (!start && !path_length) { in virtual_file_ex() 1424 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex() 1425 if (path_length >= MAXPATHLEN-1) { in virtual_file_ex() 1430 resolved_path[path_length] = 0; in virtual_file_ex() 1439 state->cwd_length = path_length; in virtual_file_ex() [all …]
|
/PHP-7.1/main/ |
H A D | fopen_wrappers.c | 670 size_t path_length = strlen(path); local 672 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1); 673 memcpy(pathbuf, path, path_length); 674 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; 675 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length); 676 pathbuf[path_length + exec_fname_length + 1] = '\0';
|
/PHP-7.1/main/streams/ |
H A D | plain_wrapper.c | 1548 size_t path_length = strlen(path); in _php_stream_fopen_with_path() local 1550 pathbuf = (char *) emalloc(exec_fname_length + path_length +1 +1); in _php_stream_fopen_with_path() 1551 memcpy(pathbuf, path, path_length); in _php_stream_fopen_with_path() 1552 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; in _php_stream_fopen_with_path() 1553 memcpy(pathbuf+path_length+1, exec_fname, exec_fname_length); in _php_stream_fopen_with_path() 1554 pathbuf[path_length + exec_fname_length +1] = '\0'; in _php_stream_fopen_with_path()
|
/PHP-7.1/ext/phar/ |
H A D | phar.c | 2086 int ptr_length, path_length = *new_len; local 2088 if (PHAR_G(cwd_len) && use_cwd && path_length > 2 && path[0] == '.' && path[1] == '/') { 2107 ptr = memchr(ptr, '/', path_length - (ptr - path)); 2110 if (!ptr && (path_length - (tok - path))) { 2111 switch (path_length - (tok - path)) { 2158 if (ptr == path + path_length) { 2165 ptr = memchr(ptr, '/', path_length - (ptr - path)); 2168 if (!ptr && (path_length - (tok - path))) { 2169 ptr_length = path_length - (tok - path); 2170 ptr = path + path_length;
|
Completed in 62 milliseconds