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

123

/PHP_5_5/ext/
H A Dext_skel_win32.php21 $path = getenv("PATH"); variable
22 putenv("PATH=$cygwin_path;$path");
/PHP_5_5/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_5/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.c200 char *path = ((struct sockaddr_un *) sa)->sun_path; local
205 if (0 > chown(path, wp->socket_uid, wp->socket_gid)) {
/PHP_5_5/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_5/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_5/ext/opcache/
H A Dzend_accelerator_blacklist.h28 char *path; member in struct:_zend_blacklist_entry
/PHP_5_5/ext/phar/
H A Ddirstream.c185 * files in a phar and retrieving its relative path. From this, construct
238 /* the entry has a path separator and is a subdirectory */
271 save += dirlen + 1; /* seek to just past the path separator */
318 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
330 if ((resource = phar_parse_url(wrapper, path, mode, options TSRMLS_CC)) == NULL) {
331 php_stream_wrapper_log_error(wrapper, options TSRMLS_CC, "phar url \"%s\" is unknown", path);
336 if (!resource->scheme || !resource->host || !resource->path) {
337 if (resource->host && !resource->path) {
338 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, char *path, 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);
581 if (!resource->scheme || !resource->host || !resource->path) {
[all...]
/PHP_5_5/ext/posix/
H A Dposix.c674 Generate terminal path name (POSIX.1, 4.7.1) */
836 char *path; local
841 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl", &path, &path_len, &mode) == FAILURE) {
845 if (php_check_open_basedir_ex(path, 0 TSRMLS_CC)) {
849 result = mkfifo(path, mode);
865 char *path; local
874 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl|ll", &path, &path_len,
879 if (php_check_open_basedir_ex(path, 0 TSRMLS_CC)) {
901 result = mknod(path, mode, php_dev);
952 char *filename, *path; local
[all...]
/PHP_5_5/ext/standard/
H A Dftp_fopen_wrapper.c133 static php_stream *php_ftp_fopen_connect(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context, argument
143 resource = php_url_parse(path);
144 if (resource == NULL || resource->path == NULL) {
413 php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) argument
456 return php_stream_url_wrap_http(wrapper, path, mode, options, opened_path, context STREAMS_CC TSRMLS_CC);
464 stream = php_ftp_fopen_connect(wrapper, path, mode, options, opened_path, context, &reuseid, &resource, &use_ssl, &use_ssl_on_data TSRMLS_CC);
476 php_stream_printf(stream TSRMLS_CC, "SIZE %s\r\n", resource->path);
505 php_stream_printf(stream TSRMLS_CC, "DELE %s\r\n", resource->path);
549 php_stream_printf(stream TSRMLS_CC, "%s %s\r\n", tmp_line, (resource->path != NULL ? resource->path
694 php_stream_ftp_opendir(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 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 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
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 */
/PHP_5_5/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_5/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_5/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:__anon305
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...]
/PHP_5_5/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_5/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_5/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_5/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;
251 stream = php_stream_open_wrapper(path, mode, options | STREAM_WILL_CAST, 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_5/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 44 milliseconds

123