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

123

/PHP_TRUNK/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_TRUNK/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_TRUNK/ext/opcache/
H A Dzend_accelerator_blacklist.h28 char *path; member in struct:_zend_blacklist_entry
/PHP_TRUNK/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_TRUNK/ext/phar/
H A Ddirstream.c177 * files in a phar and retrieving its relative path. From this, construct
227 /* the entry has a path separator and is a subdirectory */
257 save += dirlen + 1; /* seek to just past the path separator */
303 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
314 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
315 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path);
320 if (!resource->scheme || !resource->host || !resource->path) {
321 if (resource->host && !resource->path) {
322 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...]
H A Dstream.c77 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)", filename, arch);
89 resource->path = entry;
98 fprintf(stderr, "Path: %s\n", resource->path);
158 static php_stream * phar_wrapper_open_url(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ argument
170 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
175 if (!resource->scheme || !resource->host || !resource->path) {
177 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: invalid url \"%s\"", path);
183 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar error: not a phar stream url \"%s\"", path);
191 internal_file = estrdup(resource->path + 1);
580 if (!resource->scheme || !resource->host || !resource->path) {
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php.c232 int fpm_php_limit_extensions(char *path) /* {{{ */ argument
237 if (!path || !limit_extensions) {
242 path_len = strlen(path);
246 char *path_ext = path + path_len - ext_len;
255 zlog(ZLOG_NOTICE, "Access to the script '%s' has been denied (see security.limit_extensions)", path);
H A Dfpm_sockets.c200 char *path = ((struct sockaddr_un *) sa)->sun_path; local
205 if (0 > chown(path, wp->socket_uid, wp->socket_gid)) {
/PHP_TRUNK/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_TRUNK/ext/zip/
H A Dzip_stream.c119 const char *path = stream->orig_path; local
128 fragment = strchr(path, '#');
134 if (strncasecmp("zip://", path, 6) == 0) {
135 path += 6;
143 path_len = strlen(path);
148 memcpy(file_dirname, path, path_len - fragment_len);
151 file_basename = php_basename((char *)path, path_len - fragment_len, NULL, 0 TSRMLS_CC);
168 if (path[path_len-1] != '/') {
203 php_stream *php_stream_zip_open(const char *filename, const char *path, const char *mode STREAMS_DC TSRMLS_DC) argument
227 zf = zip_fopen(stream_za, path,
252 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_TRUNK/ext/zlib/
H A Dzlib_fopen_wrapper.c113 php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, const char *path, const char *mode, int options, argument
127 if (strncasecmp("compress.zlib://", path, 16) == 0) {
128 path += 16;
129 } else if (strncasecmp("zlib:", path, 5) == 0) {
130 path += 5;
133 innerstream = php_stream_open_wrapper_ex(path, mode, STREAM_MUST_SEEK | options | STREAM_WILL_CAST, opened_path, context);
/PHP_TRUNK/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:__anon299
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_TRUNK/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_TRUNK/ext/
H A Dext_skel_win32.php21 $path = getenv("PATH"); variable
22 putenv("PATH=$cygwin_path;$path");
/PHP_TRUNK/ext/standard/
H A Dhead.c76 PHPAPI int php_setcookie(char *name, size_t name_len, char *value, size_t value_len, time_t expires, char *path, size_t path_len, char *domain, size_t domain_len, int secure, int url_encode, int httponly TSRMLS_DC) argument
104 if (path) {
151 if (path && path_len > 0) {
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_len, domain, domain_len, secure, 1, httponly TSRMLS_CC) == SUCCESS) {
199 /* {{{ proto bool setrawcookie(string name [, string value [, int expires [, string path [, strin
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 = ZEND_STRTOL(path, NULL, 10);
207 if (!strcasecmp(path, "memory")) {
216 if (!strcasecmp(path, "outpu
[all...]
H A Ddir.c240 add_property_stringl(return_value, "path", dirname, dir_len);
249 /* {{{ proto mixed opendir(string path[, resource context])
361 char path[MAXPATHLEN]; local
369 ret = VCWD_GETCWD(path, MAXPATHLEN);
371 ret = VCWD_GETWD(path);
375 RETURN_STRING(path);
553 List files & directories inside the specified path */
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_rinit_hook.h38 char *path; variable
H A Dphpdbg_webdata_transfer.c106 char path[MAXPATHLEN]; local
109 ret = VCWD_GETCWD(path, MAXPATHLEN);
111 ret = VCWD_GETWD(path);
114 ZVAL_STRING(&zv[5], path);
/PHP_TRUNK/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_TRUNK/win32/
H A Dregistry.c60 static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_len, HashTable *parent_ht) argument
101 zend_hash_str_update_mem(directories, path, path_len + 1, &ht, sizeof(HashTable*));
126 memcpy(new_path, path, path_len);
158 void UpdateIniFromRegistry(char *path TSRMLS_DC)
164 if(!path) {
195 orig_path = path = estrdup(path);
198 p = strchr(path, ':');
200 *p = path[0]; /* replace the colon with the drive letter */
201 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_TRUNK/ext/bz2/
H A Dbz2.c235 const char *path,
245 if (strncasecmp("compress.bzip2://", path, 17) == 0) {
246 path += 17;
253 virtual_filepath_ex(path, &path_copy, NULL TSRMLS_CC);
255 path_copy = path;
286 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, opened_path);
234 _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

Completed in 43 milliseconds

123