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

123

/PHP_5_6/ext/
H A Dext_skel_win32.php21 $path = getenv("PATH"); variable
22 putenv("PATH=$cygwin_path;$path");
/PHP_5_6/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_6/ext/zip/lib/
H A Dmkstemp.c55 _zip_mkstemp(char *path)
59 ret = _creat(_mktemp(path), _S_IREAD|_S_IWRITE);
79 /* Move to end of path and count trailing X's. */
80 for (trv = path; *trv; ++trv)
114 if (trv <= path)
118 if (stat(path, &sbuf))
130 if ((fd=open(path, O_CREAT|O_EXCL|O_RDWR|O_BINARY, 0600)) >= 0)
54 _zip_mkstemp(char *path) argument
/PHP_5_6/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.c189 char *path = ((struct sockaddr_un *) sa)->sun_path; local
194 if (0 > chown(path, wp->socket_uid, wp->socket_gid)) {
/PHP_5_6/win32/
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...]
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] == ' ') {
/PHP_5_6/Zend/
H A Dzend_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, '
215 char *path; member in struct:_realpath_cache_bucket
[all...]
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_6/ext/opcache/
H A Dzend_accelerator_blacklist.h28 char *path; member in struct:_zend_blacklist_entry
/PHP_5_6/ext/phar/
H A Ddirstream.c177 * files in a phar and retrieving its relative path. From this, construct
225 /* the entry has a path separator and is a subdirectory */
255 save += dirlen + 1; /* seek to just past the path separator */
301 php_stream *phar_wrapper_open_dir(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ argument
312 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
313 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path);
318 if (!resource->scheme || !resource->host || !resource->path) {
319 if (resource->host && !resource->path) {
320 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...]
/PHP_5_6/ext/standard/
H A Ddir.c240 add_property_stringl(return_value, "path", dirname, dir_len, 1);
249 /* {{{ 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);
551 List files & directories inside the specified path */
H A Dhead.c76 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
104 if (path) {
151 if (path && path_len > 0) {
152 strlcat(cookie, "; path=", len + 100);
153 strlcat(cookie, path, len + 100);
175 /* php_set_cookie(name, value, expires, path, domain, secure) */
176 /* {{{ proto bool setcookie(string name [, string value [, int expires [, string path [, string domain [, bool secure[, bool httponly]]]]]])
180 char *name, *value = NULL, *path = NULL, *domain = NULL; local
186 &name_len, &value, &value_len, &expires, &path,
191 if (php_setcookie(name, name_len, value, value_len, expires, path, path_le
203 char *name, *value = NULL, *path = NULL, *domain = NULL; local
[all...]
H A Durl.h29 char *path; member in struct:php_url
H A Dphp_fopen_wrapper.c174 php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
184 if (!strncasecmp(path, "php://", 6)) {
185 path += 6;
188 if (!strncasecmp(path, "temp", 4)) {
189 path += 4;
191 if (!strncasecmp(path, "/maxmemory:", 11)) {
192 path += 11;
193 max_memory = strtol(path, NULL, 10);
207 if (!strcasecmp(path, "memory")) {
216 if (!strcasecmp(path, "outpu
[all...]
/PHP_5_6/ext/zip/
H A Dzip_stream.c119 const char *path = stream->orig_path; local
129 fragment = strchr(path, '#');
135 if (strncasecmp("zip://", path, 6) == 0) {
136 path += 6;
144 path_len = strlen(path);
149 memcpy(file_dirname, path, path_len - fragment_len);
152 php_basename((char *)path, path_len - fragment_len, NULL, 0, &file_basename, &file_basename_len TSRMLS_CC);
169 if (path[path_len-1] != '/') {
204 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC TSRMLS_DC) argument
228 zf = zip_fopen(stream_za, path,
253 php_stream_zip_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_6/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 TSRMLS_CC)) {
/PHP_5_6/main/streams/
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);
H A Dglob_wrapper.c44 char *path; member in struct:__anon307
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, const char *path, int get_path, const char **p_file TSRMLS_DC) /* {{{ */ argument
114 const char *pos, *gpath = path;
116 if ((pos = strrchr(path, '/')) != NULL) {
117 path = pos+1;
120 if ((pos = strrchr(path, '\\')) != NULL) {
121 path
144 const char *path; local
209 php_glob_stream_opener(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
[all...]
/PHP_5_6/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_6/ext/session/
H A Dmod_mm.c231 static int ps_mm_initialize(ps_mm *data, const char *path) argument
234 data->mm = mm_create(0, path);
/PHP_5_6/ext/zlib/
H A Dzlib_fopen_wrapper.c111 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
125 if (strncasecmp("compress.zlib://", path, 16) == 0) {
126 path += 16;
127 } else if (strncasecmp("zlib:", path, 5) == 0) {
128 path += 5;
131 innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context);
/PHP_5_6/ext/bz2/
H A Dbz2.c209 const char *path,
219 if (strncasecmp("compress.bzip2://", path, 17) == 0) {
220 path += 17;
227 virtual_filepath_ex(path, &path_copy, NULL TSRMLS_CC);
229 path_copy = path;
252 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);
208 _php_stream_bz2open(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_cmd.c101 char path[MAXPATHLEN]; local
103 memcpy(path, str, line_pos - str);
104 path[line_pos - str] = 0;
106 param->file.name = phpdbg_resolve_path(path TSRMLS_CC);
/PHP_5_6/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;

Completed in 62 milliseconds

123