/PHP-5.5/win32/ |
H A D | registry.c | 140 if (path_len) { in LoadDirectory() 145 name_len += path_len+1; in LoadDirectory() 175 int path_len; in UpdateIniFromRegistry() local 243 path_len = 0; in UpdateIniFromRegistry() 246 path[path_len] = '/'; in UpdateIniFromRegistry() 248 path_len++; in UpdateIniFromRegistry() 251 while (path_len >= 0) { in UpdateIniFromRegistry() 268 if (--path_len > 0) { in UpdateIniFromRegistry() 269 while (path_len > 0 && path[path_len] != '/') { in UpdateIniFromRegistry() 270 path_len--; in UpdateIniFromRegistry() [all …]
|
H A D | winutil.c | 37 int php_win32_check_trailing_space(const char * path, const int path_len) { in php_win32_check_trailing_space() argument 38 if (path_len < 1) { in php_win32_check_trailing_space() 42 if (path[0] == ' ' || path[path_len - 1] == ' ') { in php_win32_check_trailing_space()
|
H A D | winutil.h | 22 int php_win32_check_trailing_space(const char * path, const int path_len);
|
/PHP-5.5/ext/zip/ |
H A D | zip_stream.c | 104 size_t path_len = strlen(stream->orig_path); in php_zip_ops_stat() local 128 path_len = strlen(path); in php_zip_ops_stat() 129 if (path_len >= MAXPATHLEN) { in php_zip_ops_stat() 133 memcpy(file_dirname, path, path_len - fragment_len); in php_zip_ops_stat() 134 file_dirname[path_len - fragment_len] = '\0'; in php_zip_ops_stat() 153 if (path[path_len-1] != '/') { in php_zip_ops_stat() 244 size_t path_len; in php_stream_zip_opener() local 273 path_len = strlen(path); in php_stream_zip_opener() 274 if (path_len >= MAXPATHLEN || mode[0] != 'r') { in php_stream_zip_opener() 278 memcpy(file_dirname, path, path_len - fragment_len); in php_stream_zip_opener() [all …]
|
H A D | php_zip.c | 71 #define PHP_ZIP_STAT_PATH(za, path, path_len, flags, sb) \ argument 72 if (path_len < 1) { \ 100 static char * php_zip_make_relative_path(char *path, int path_len) /* {{{ */ in php_zip_make_relative_path() argument 105 if (path_len < 1 || path == NULL) { in php_zip_make_relative_path() 113 i = path_len; in php_zip_make_relative_path() 637 if (!IS_ABSOLUTE_PATH(path, path_len)) { in php_zip_pcre() 688 if ((path_len + namelist_len + 1) >= MAXPATHLEN) { in php_zip_pcre() 690 MAXPATHLEN - 1, (path_len + namelist_len + 1)); in php_zip_pcre() 1665 int pattern_len, add_path_len = 0, remove_path_len = 0, path_len = 0; in php_zip_add_from_pattern() local 1684 &pattern, &pattern_len, &path, &path_len, &options) == FAILURE) { in php_zip_add_from_pattern() [all …]
|
/PHP-5.5/ext/standard/ |
H A D | head.c | 76 …t name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, in… in php_setcookie() argument 105 len += path_len; in php_setcookie() 151 if (path && path_len > 0) { in php_setcookie() 183 int name_len, value_len = 0, path_len = 0, domain_len = 0; in PHP_FUNCTION() local 187 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) { in PHP_FUNCTION() 191 …if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, s… in PHP_FUNCTION() 206 int name_len, value_len = 0, path_len = 0, domain_len = 0; in PHP_FUNCTION() local 210 &path_len, &domain, &domain_len, &secure, &httponly) == FAILURE) { in PHP_FUNCTION() 214 …if (php_setcookie(name, name_len, value, value_len, expires, path, path_len, domain, domain_len, s… in PHP_FUNCTION()
|
H A D | head.h | 34 …t name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, in…
|
H A D | filestat.c | 236 int path_len; in PHP_FUNCTION() local 238 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) { in PHP_FUNCTION() 371 int path_len; in PHP_FUNCTION() local 373 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &path, &path_len) == FAILURE) { in PHP_FUNCTION() 1226 …zend_hash_update(Z_ARRVAL_P(return_value), bucket->path, bucket->path_len+1, &entry, sizeof(zval *… in PHP_FUNCTION()
|
H A D | string.c | 1563 int path_len, have_basename; local 1567 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &path, &path_len, &opt) == FAILURE) { 1577 ret = estrndup(path, path_len); 1578 php_dirname(ret, path_len); 1587 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC); 1596 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC); 1613 php_basename(path, path_len, NULL, 0, &ret, &ret_len TSRMLS_CC);
|
/PHP-5.5/main/ |
H A D | fopen_wrappers.c | 151 int path_len; local 160 path_len = strlen(path); 161 if (path_len > (MAXPATHLEN - 1)) { 171 path_len = strlen(resolved_name); 209 path_len = path_file - path_tmp + 1; 211 if (path_len > 1 && path_tmp[path_len - 2] == ':') { 212 if (path_len != 3) { 216 path_tmp[path_len] = '\0'; 218 path_tmp[path_len - 1] = '\0'; 221 path_tmp[path_len - 1] = '\0'; [all …]
|
H A D | php_ini.h | 39 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC);
|
H A D | php_ini.c | 814 PHPAPI void php_ini_activate_per_dir_config(char *path, uint path_len TSRMLS_DC) 825 if (path_len >= MAXPATHLEN) { 827 if (path_len > MAXPATHLEN) { 833 memcpy(path_bak, path, path_len); 834 path_bak[path_len] = 0; 840 if (has_per_dir_config && path && path_len) {
|
/PHP-5.5/TSRM/ |
H A D | tsrm_virtual_cwd.c | 288 const size_t path_len = strlen(path); in php_sys_stat_ex() local 294 if (path_len >= 1 && path[1] == ':') { in php_sys_stat_ex() 300 } else if (IS_UNC_PATH(path, path_len)) { in php_sys_stat_ex() 580 const char *e = path + path_len; in realpath_cache_key() 620 if (key == (*bucket)->key && path_len == (*bucket)->path_len && in realpath_cache_del() 646 if (realpath_len != path_len || in realpath_cache_add() 647 memcmp(path, realpath, path_len) != 0) { in realpath_cache_add() 663 bucket->key = realpath_cache_key(path, path_len); in realpath_cache_add() 666 memcpy(bucket->path, path, path_len+1); in realpath_cache_add() 667 bucket->path_len = path_len; in realpath_cache_add() [all …]
|
H A D | tsrm_virtual_cwd.h | 214 int path_len; member 245 CWD_API void realpath_cache_del(const char *path, int path_len TSRMLS_DC); 246 CWD_API realpath_cache_bucket* realpath_cache_lookup(const char *path, int path_len, time_t t TSRML…
|
/PHP-5.5/ext/phar/ |
H A D | util.c | 189 entry.filename = estrndup(path, path_len); in phar_mount_entry() 193 entry.filename_len = path_len; in phar_mount_entry() 383 if (!path_len) { in phar_get_entry_data() 531 is_dir = (path_len && path[path_len - 1] == '/') ? 1 : 0; in phar_get_or_create_entry_data() 562 etemp.filename_len = path_len; in phar_get_or_create_entry_data() 584 path_len--; in phar_get_or_create_entry_data() 1234 is_dir = (path_len && (path[path_len - 1] == '/')) ? 1 : 0; in phar_get_entry_info_dir() 1247 if (!path_len && !dir) { in phar_get_entry_info_dir() 1266 if (!path_len || path_len == 1) { in phar_get_entry_info_dir() 1269 path_len--; in phar_get_entry_info_dir() [all …]
|
H A D | dirstream.c | 576 uint path_len; in phar_wrapper_rmdir() local 622 path_len = strlen(resource->path+1); in phar_wrapper_rmdir() 624 …if (!(entry = phar_get_entry_info_dir(phar, resource->path + 1, path_len, 2, &error, 1 TSRMLS_CC))… in phar_wrapper_rmdir() 642 if (key_len > path_len && in phar_wrapper_rmdir() 643 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir() 644 IS_SLASH(str_key[path_len])) { in phar_wrapper_rmdir() 663 if (key_len > path_len && in phar_wrapper_rmdir() 664 memcmp(str_key, resource->path+1, path_len) == 0 && in phar_wrapper_rmdir() 665 IS_SLASH(str_key[path_len])) { in phar_wrapper_rmdir() 680 zend_hash_del(&phar->virtual_dirs, resource->path+1, path_len); in phar_wrapper_rmdir()
|
H A D | phar_internal.h | 538 static inline void phar_unixify_path_separators(char *path, int path_len) in phar_unixify_path_separators() argument 543 for (s = path; s - path < path_len; ++s) { in phar_unixify_path_separators() 602 …try(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC); 640 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, int path_len, char **erro… 641 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, int path_len, char di… 642 phar_entry_data *phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len… 643 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len…
|
/PHP-5.5/main/streams/ |
H A D | glob_wrapper.c | 45 size_t path_len; member 56 *plen = pglob->path_len; in _php_glob_stream_get_path() 59 return estrndup(pglob->path, pglob->path_len); in _php_glob_stream_get_path() 134 pglob->path_len = path - gpath; in php_glob_stream_path_split() 135 pglob->path = estrndup(gpath, pglob->path_len); in php_glob_stream_path_split()
|
/PHP-5.5/sapi/fpm/fpm/ |
H A D | fpm_php.c | 236 size_t path_len; in fpm_php_limit_extensions() local 243 path_len = strlen(path); in fpm_php_limit_extensions() 246 if (path_len > ext_len) { in fpm_php_limit_extensions() 247 char *path_ext = path + path_len - ext_len; in fpm_php_limit_extensions()
|
H A D | fpm_main.c | 721 if (!IS_ABSOLUTE_PATH(path, path_len)) { 728 path_len = real_path_len; 731 if (path_len > doc_root_len) { 738 s_len = path_len; 772 uint path_len, doc_root_len, server_name_len; local 796 path_len = strlen(SG(request_info).path_translated); 800 path = emalloc(path_len + 2); 802 path_len = zend_dirname(path, path_len); 803 path[path_len++] = DEFAULT_SLASH; 806 path_len = zend_dirname(path, path_len); [all …]
|
/PHP-5.5/ext/spl/ |
H A D | spl_directory.c | 595 int pnlen, path_len; in spl_filesystem_object_get_debug_info() local 621 if (path_len && path_len < intern->file_name_len) { in spl_filesystem_object_get_debug_info() 877 int path_len; in SPL_METHOD() local 893 int path_len; in SPL_METHOD() local 901 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD() 931 int path_len, idx; in SPL_METHOD() local 939 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD() 1010 if (path_len && path_len < intern->file_name_len) { in SPL_METHOD() 1049 int path_len; in SPL_METHOD() local 1409 int path_len; in SPL_METHOD() local [all …]
|
/PHP-5.5/sapi/cgi/ |
H A D | cgi_main.c | 780 if (!IS_ABSOLUTE_PATH(path, path_len)) { 787 path_len = real_path_len; 790 if (path_len > doc_root_len) { 797 s_len = path_len; 834 uint path_len, doc_root_len, server_name_len; local 864 path_len = strlen(SG(request_info).path_translated); 868 path = emalloc(path_len + 2); 870 path_len = zend_dirname(path, path_len); 871 path[path_len++] = DEFAULT_SLASH; 874 path_len = zend_dirname(path, path_len); [all …]
|
H A D | fastcgi.c | 661 int path_len = strlen(path); in fcgi_listen() 663 if (path_len >= sizeof(sa.sa_unix.sun_path)) { in fcgi_listen() 670 memcpy(sa.sa_unix.sun_path, path, path_len + 1); in fcgi_listen() 671 sock_len = (size_t)(((struct sockaddr_un *)0)->sun_path) + path_len; in fcgi_listen()
|
/PHP-5.5/ext/posix/ |
H A D | posix.c | 837 int path_len; in PHP_FUNCTION() local 841 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl", &path, &path_len, &mode) == FAILURE) { in PHP_FUNCTION() 866 int path_len; in PHP_FUNCTION() local 874 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|ll", &path, &path_len, in PHP_FUNCTION()
|
/PHP-5.5/ext/pcntl/ |
H A D | pcntl.c | 755 int path_len; in PHP_FUNCTION() local 758 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|aa", &path, &path_len, &args, &envs) == FA… in PHP_FUNCTION()
|