Home
last modified time | relevance | path

Searched refs:cwd (Results 51 – 63 of 63) sorted by relevance

123

/PHP-7.4/ext/standard/
H A Dproc_open.c478 char *command = NULL, *cwd = NULL; in PHP_FUNCTION() local
524 Z_PARAM_STRING_EX(cwd, cwd_len, 1, 0) in PHP_FUNCTION()
880 if (cwd == NULL) { in PHP_FUNCTION()
887 cwd = cur_cwd; in PHP_FUNCTION()
889 cwdw = php_win32_cp_any_to_w(cwd); in PHP_FUNCTION()
1049 if (cwd) { in PHP_FUNCTION()
1050 php_ignore_value(chdir(cwd)); in PHP_FUNCTION()
H A Dbasic_functions.c1876 ZEND_ARG_INFO(0, cwd)
/PHP-7.4/ext/phar/
H A Dphar_object.c137 const char *cwd; in phar_file_action() local
224 PHAR_G(cwd) = NULL; in phar_file_action()
231 if (entry == cwd) { in phar_file_action()
234 PHAR_G(cwd) = NULL; in phar_file_action()
264 if (PHAR_G(cwd)) { in phar_file_action()
265 efree(PHAR_G(cwd)); in phar_file_action()
266 PHAR_G(cwd) = NULL; in phar_file_action()
276 if (PHAR_G(cwd)) { in phar_file_action()
277 efree(PHAR_G(cwd)); in phar_file_action()
278 PHAR_G(cwd) = NULL; in phar_file_action()
[all …]
H A Dfunc_interceptors.c660 save = PHAR_G(cwd); in phar_file_stat()
665 PHAR_G(cwd) = "/"; in phar_file_stat()
670 PHAR_G(cwd) = save; in phar_file_stat()
680 PHAR_G(cwd) = save; in phar_file_stat()
695 PHAR_G(cwd) = save; in phar_file_stat()
992 PHAR_G(cwd) = NULL; in PharFileFunction()
H A Dstream.c322 char *entry = idata->internal_file->filename, *cwd; in phar_wrapper_open_url() local
328 } else if ((cwd = strrchr(entry, '/'))) { in phar_wrapper_open_url()
329 PHAR_G(cwd_len) = cwd - entry; in phar_wrapper_open_url()
330 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len)); in phar_wrapper_open_url()
334 PHAR_G(cwd) = NULL; in phar_wrapper_open_url()
H A Dphar_internal.h174 char* cwd; variable
H A Dphar.c2097 memcpy(newpath, PHAR_G(cwd), newpath_len); in phar_fix_filepath()
3496 PHAR_G(cwd) = NULL; in phar_request_initialize()
3536 if (PHAR_G(cwd)) { in PHP_RSHUTDOWN_FUNCTION()
3537 efree(PHAR_G(cwd)); in PHP_RSHUTDOWN_FUNCTION()
3540 PHAR_G(cwd) = NULL; in PHP_RSHUTDOWN_FUNCTION()
H A Dutil.c255 if (!zend_is_executing() || !PHAR_G(cwd)) { in phar_find_in_include_path()
308 …spprintf(&path, MAXPATHLEN + 1 + strlen(PG(include_path)), "phar://%s/%s%c%s", arch, PHAR_G(cwd), … in phar_find_in_include_path()
/PHP-7.4/Zend/
H A Dzend_virtual_cwd.h153 char *cwd; member
223 cwd_state cwd; member
/PHP-7.4/main/streams/
H A Dplain_wrapper.c1578 char *cwd; in _php_stream_fopen_with_path() local
1579 cwd = virtual_getcwd_ex(&cwd_len); in _php_stream_fopen_with_path()
1581 *(cwd+3) = '\0'; in _php_stream_fopen_with_path()
1583 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path()
1584 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN); in _php_stream_fopen_with_path()
1587 efree(cwd); in _php_stream_fopen_with_path()
/PHP-7.4/ext/opcache/
H A DZendAccelerator.h204 zend_string *cwd; /* current working directory or NULL */ member
/PHP-7.4/TSRM/
H A Dtsrm_win32.c448 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env) in popen_ex() argument
495 if (cwd) { in popen_ex()
496 cwdw = php_win32_ioutil_any_to_w(cwd); in popen_ex()
/PHP-7.4/ext/phar/tests/
H A Dfopen_edgecases.phpt17 // create in cwd

Completed in 73 milliseconds

123