Searched defs:path (Results 1 - 25 of 60) sorted by relevance

123

/PHP_5_3/ext/
H A Dext_skel_win32.php21 $path = getenv("PATH"); variable
22 putenv("PATH=$cygwin_path;$path");
/PHP_5_3/ext/zip/
H A Dzip_stream.c103 const char *path = stream->orig_path; local
113 fragment = strchr(path, '#');
119 if (strncasecmp("zip://", path, 6) == 0) {
120 path += 6;
128 path_len = strlen(path);
133 memcpy(file_dirname, path, path_len - fragment_len);
136 php_basename((char *)path, path_len - fragment_len, NULL, 0, &file_basename, &file_basename_len TSRMLS_CC);
153 if (path[path_len-1] != '/') {
188 php_stream *php_stream_zip_open(char *filename, char *path, char *mode STREAMS_DC TSRMLS_DC) argument
212 zf = zip_fopen(stream_za, path,
237 php_stream_zip_opener(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_3/sapi/fpm/fpm/
H A Dfpm_php.c233 int fpm_php_limit_extensions(char *path) /* {{{ */ argument
238 if (!path || !limit_extensions) {
243 path_len = strlen(path);
247 char *path_ext = path + path_len - ext_len;
256 zlog(ZLOG_NOTICE, "Access to the script '%s' has been denied (see security.limit_extensions)", path);
H A Dfpm_sockets.c203 char *path = ((struct sockaddr_un *) sa)->sun_path; local
208 if (0 > chown(path, wp->socket_uid, wp->socket_gid)) {
/PHP_5_3/scripts/dev/
H A Dfind_tested.php183 $path = $thisdir->path.$file; variable
184 if(is_dir($path) == true) {
185 get_phpt_files($path , $phpt_file_count , $all_phpt);
188 $all_phpt[$phpt_file_count] = $path;
/PHP_5_3/ext/fileinfo/libmagic/
H A Dapptype.c49 char path[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR], local
62 (void)sprintf(path, "%s%s%s%s", drive,
68 if ((fp = fopen(path, "wb")) == NULL) {
69 file_error(ms, errno, "cannot open tmp file `%s'", path);
74 path);
80 rc = DosQueryAppType((unsigned char *)path, &type);
83 unlink(path);
/PHP_5_3/TSRM/
H A Dtsrm_virtual_cwd.h69 #define COPY_WHEN_ABSOLUTE(path) 2
70 #define IS_UNC_PATH(path, len) \
71 (len >= 2 && IS_SLASH(path[0]) && IS_SLASH(path[1]))
72 #define IS_ABSOLUTE_PATH(path, len) \
73 (len >= 2 && ((isalpha(path[0]) && path[1] == ':') || IS_UNC_PATH(path, len)))
85 #define IS_ABSOLUTE_PATH(path, len) \
86 ((strchr(path, '
213 char *path; member in struct:_realpath_cache_bucket
[all...]
/PHP_5_3/ext/bz2/
H A Dbz2.c208 char *path,
218 if (strncasecmp("compress.bzip2://", path, 17) == 0) {
219 path += 17;
226 virtual_filepath_ex(path, &path_copy, NULL TSRMLS_CC);
228 path_copy = path;
245 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST | ENFORCE_SAFE_MODE, opened_path);
207 _php_stream_bz2open(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
/PHP_5_3/ext/dba/
H A Dphp_dba.h43 char *path; member in struct:dba_info
/PHP_5_3/ext/pcntl/
H A Dpcntl.c116 ZEND_ARG_INFO(0, path)
739 /* {{{ proto bool pcntl_exec(string path [, array args [, array envs]])
754 char *path; local
758 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|aa", &path, &path_len, &args, &envs) == FAILURE) {
768 *argv = path;
779 *argv = path;
817 if (execve(path, argv, envp) == -1) {
827 if (execv(path, argv) == -1) {
/PHP_5_3/ext/session/
H A Dmod_mm.c217 static int ps_mm_initialize(ps_mm *data, const char *path) argument
220 data->mm = mm_create(0, path);
/PHP_5_3/ext/standard/
H A Ddir.c236 add_property_stringl(return_value, "path", dirname, dir_len, 1);
245 /* {{{ proto mixed opendir(string path[, resource context])
359 char path[MAXPATHLEN]; local
367 ret = VCWD_GETCWD(path, MAXPATHLEN);
369 ret = VCWD_GETWD(path);
373 RETURN_STRING(path, 1);
553 List files & directories inside the specified path */
H A Dhead.c77 PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, int domain_len, int secure, int url_encode, int httponly TSRMLS_DC) argument
105 if (path) {
147 if (path && path_len > 0) {
148 strlcat(cookie, "; path=", len + 100);
149 strlcat(cookie, path, len + 100);
171 /* php_set_cookie(name, value, expires, path, domain, secure) */
172 /* {{{ proto bool setcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly]]]]]])
176 char *name, *value = NULL, *path = NULL, *domain = NULL; local
182 &name_len, &value, &value_len, &expires, &path,
187 if (php_setcookie(name, name_len, value, value_len, expires, path, path_le
199 char *name, *value = NULL, *path = NULL, *domain = NULL; local
[all...]
H A Dphp_fopen_wrapper.c160 php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ argument
169 if (!strncasecmp(path, "php://", 6)) {
170 path += 6;
173 if (!strncasecmp(path, "temp", 4)) {
174 path += 4;
176 if (!strncasecmp(path, "/maxmemory:", 11)) {
177 path += 11;
178 max_memory = strtol(path, NULL, 10);
192 if (!strcasecmp(path, "memory")) {
201 if (!strcasecmp(path, "outpu
[all...]
H A Durl.h29 char *path; member in struct:php_url
/PHP_5_3/ext/zlib/
H A Dzlib_fopen_wrapper.c109 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mode, int options, argument
123 if (strncasecmp("compress.zlib://", path, 16) == 0) {
124 path += 16;
125 } else if (strncasecmp("zlib:", path, 5) == 0) {
126 path += 5;
129 innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context);
/PHP_5_3/main/
H A Dphp_open_temporary_file.c97 static int php_do_open_temporary_file(const char *path, const char *pfx, char **opened_path_p TSRMLS_DC) argument
112 if (!path || !path[0]) {
130 if (virtual_file_ex(&new_state, path, NULL, CWD_REALPATH)) {
H A Dsafe_mode.c53 char path[MAXPATHLEN]; local
57 path[0] = '\0';
60 return 0; /* path must be provided */
85 strcpy(path, filename);
88 expand_filepath(filename, path TSRMLS_CC);
90 ret = VCWD_STAT(path, &sb);
115 if ((s = strrchr(path, DEFAULT_SLASH))) {
116 if (*(s + 1) == '\0' && s != path) { /* make sure that the / is not the last character */
118 s = strrchr(path, DEFAULT_SLASH);
121 if (s == path) {
[all...]
/PHP_5_3/main/streams/
H A Dglob_wrapper.c44 char *path; member in struct:__anon258
54 if (pglob && pglob->path) {
59 return estrndup(pglob->path, pglob->path_len);
61 return pglob->path;
112 static void php_glob_stream_path_split(glob_s_t *pglob, char *path, int get_path, char **p_file TSRMLS_DC) /* {{{ */ argument
114 char *pos, *gpath = path;
116 if ((pos = strrchr(path, '/')) != NULL) {
117 path = pos+1;
120 if ((pos = strrchr(path, '\\')) != NULL) {
121 path
144 char *path; local
209 php_glob_stream_opener(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
H A Dcast.c354 PHPAPI FILE * _php_stream_open_wrapper_as_file(char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC) argument
359 stream = php_stream_open_wrapper_rel(path, mode, options|STREAM_WILL_CAST, opened_path);
/PHP_5_3/sapi/webjames/
H A Dwebjames.c170 char *path; local
174 path = __unixify(WG(conn)->filename,0,NULL,1024,0);
175 if (path) SG(request_info).path_translated = estrdup(path);
/PHP_5_3/win32/
H A Dwinutil.c37 int php_win32_check_trailing_space(const char * path, const int path_len) { argument
41 if (path) {
42 if (path[0] == ' ' || path[path_len - 1] == ' ') {
H A Dregistry.c60 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) argument
116 zend_hash_update(directories, path, path_len+1, &ht, sizeof(HashTable*), NULL);
141 memcpy(new_path, path, path_len);
172 void UpdateIniFromRegistry(char *path TSRMLS_DC)
178 if(!path) {
209 orig_path = path = estrdup(path);
212 p = strchr(path, ':');
214 *p = path[0]; /* replace the colon with the drive letter */
215 path
[all...]
/PHP_5_3/Zend/
H A Dzend_extensions.c27 int zend_load_extension(const char *path) argument
34 handle = DL_LOAD(path);
37 fprintf(stderr, "Failed loading %s: %s\n", path, DL_ERROR());
43 fprintf(stderr, "Failed loading %s\n", path);
57 fprintf(stderr, "%s doesn't appear to be a valid Zend extension\n", path);
/PHP_5_3/ext/phar/
H A Ddirstream.c189 * files in a phar and retrieving its relative path. From this, construct
242 /* the entry has a path separator and is a subdirectory */
275 save += dirlen + 1; /* seek to just past the path separator */
322 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ argument
334 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
335 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path);
340 if (!resource->scheme || !resource->host || !resource->path) {
341 if (resource->host && !resource->path) {
342 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: no directory in \"%s\", must have at least phar://%s/ for root directory (always use full path to a new phar)", path, resourc
[all...]

Completed in 19 milliseconds

123