Searched refs:path_length (Results 1 – 9 of 9) sorted by relevance
/PHP-8.0/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.h | 333 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len);
|
H A D | ZendAccelerator.c | 1120 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len) in accel_make_persistent_key() argument 1125 if (IS_ABSOLUTE_PATH(path, path_length)) { in accel_make_persistent_key() 1234 if (UNEXPECTED((size_t)(cwd_len + path_length + include_path_len + 2) >= sizeof(ZCG(key)))) { in accel_make_persistent_key() 1243 memcpy(ZCG(key), path, path_length); in accel_make_persistent_key() 1244 ZCG(key)[path_length] = ':'; in accel_make_persistent_key() 1245 key_length = path_length + 1; in accel_make_persistent_key() 1280 *key_len = path_length; in accel_make_persistent_key()
|
H A D | zend_accelerator_module.c | 699 add_next_index_stringl(return_value, p->path, p->path_length);
|
/PHP-8.0/Zend/ |
H A D | zend_virtual_cwd.c | 1010 size_t path_length = strlen(path); in virtual_file_ex() local 1019 if (!path_length || path_length >= MAXPATHLEN-1) { in virtual_file_ex() 1079 path_length += state_cwd_length; in virtual_file_ex() 1093 path_length++; in virtual_file_ex() 1139 path_length = tsrm_realpath_r(resolved_path, start, path_length, &ll, &t, use_realpath, 0, NULL); in virtual_file_ex() 1141 if (path_length == (size_t)-1) { in virtual_file_ex() 1146 if (!start && !path_length) { in virtual_file_ex() 1150 if (add_slash && path_length && !IS_SLASH(resolved_path[path_length-1])) { in virtual_file_ex() 1156 resolved_path[path_length] = 0; in virtual_file_ex() 1165 state->cwd_length = path_length; in virtual_file_ex() [all …]
|
/PHP-8.0/main/ |
H A D | fopen_wrappers.c | 667 size_t path_length = strlen(path); local 669 pathbuf = (char *) emalloc(exec_fname_length + path_length + 1 + 1); 670 memcpy(pathbuf, path, path_length); 671 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; 672 memcpy(pathbuf + path_length + 1, exec_fname, exec_fname_length); 673 pathbuf[path_length + exec_fname_length + 1] = '\0';
|
/PHP-8.0/main/streams/ |
H A D | plain_wrapper.c | 1623 size_t path_length = strlen(path); in _php_stream_fopen_with_path() local 1625 pathbuf = (char *) emalloc(exec_fname_length + path_length +1 +1); in _php_stream_fopen_with_path() 1626 memcpy(pathbuf, path, path_length); in _php_stream_fopen_with_path() 1627 pathbuf[path_length] = DEFAULT_DIR_SEPARATOR; in _php_stream_fopen_with_path() 1628 memcpy(pathbuf+path_length+1, exec_fname, exec_fname_length); in _php_stream_fopen_with_path() 1629 pathbuf[path_length + exec_fname_length +1] = '\0'; in _php_stream_fopen_with_path()
|
/PHP-8.0/ext/phar/ |
H A D | phar.c | 2143 size_t ptr_length, path_length = *new_len; in phar_fix_filepath() local 2145 if (PHAR_G(cwd_len) && use_cwd && path_length > 2 && path[0] == '.' && path[1] == '/') { in phar_fix_filepath() 2164 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2167 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2168 switch (path_length - (tok - path)) { in phar_fix_filepath() 2215 if (ptr == path + path_length) { in phar_fix_filepath() 2222 ptr = memchr(ptr, '/', path_length - (ptr - path)); in phar_fix_filepath() 2225 if (!ptr && (path_length - (tok - path))) { in phar_fix_filepath() 2226 ptr_length = path_length - (tok - path); in phar_fix_filepath() 2227 ptr = path + path_length; in phar_fix_filepath()
|
Completed in 50 milliseconds