Home
last modified time | relevance | path

Searched refs:path_length (Results 1 – 9 of 9) sorted by relevance

/PHP-8.0/ext/opcache/
H A Dzend_accelerator_blacklist.c263 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 Dzend_accelerator_blacklist.h29 int path_length; member
H A DZendAccelerator.h333 char *accel_make_persistent_key(const char *path, size_t path_length, int *key_len);
H A DZendAccelerator.c1120 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 Dzend_accelerator_module.c699 add_next_index_stringl(return_value, p->path, p->path_length);
/PHP-8.0/Zend/
H A Dzend_virtual_cwd.c1010 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 Dfopen_wrappers.c667 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 Dplain_wrapper.c1623 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 Dphar.c2143 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