Searched defs:cwd (Results 1 - 18 of 18) sorted by relevance

/PHP_5_6/
H A Dserver-tests.php168 function execute($command, $args=NULL, $input=NULL, $cwd=NULL, $env=NULL)
179 $pipes, $cwd, $env);
218 function executeCode($php, $ini_overwrites, $code, $remove_headers=true, $cwd=NULL, $env=NULL)
226 $out = execute($php, $params, $code, $cwd, $env);
412 public $cwd; variable
493 $this->cwd = getcwd(); variable
496 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd;
518 //$this->ini_overwrites['include_path'] = $this->cwd.($this->iswin32?';.;':':.:').$this->exec_info['INCLUDE_PATH'];
565 function runscript($script,$removeheaders=false,$cwd=NULL)
569 if (!$cwd)
1100 $cwd = str_replace('\\\\','/',$this->cwd); variable
[all...]
H A Drun-tests.php103 $cwd = getcwd(); variable
150 $php = $cwd . '/sapi/cli/php';
154 $php_cgi = $cwd . '/sapi/cgi/php-cgi';
170 $php_cgi = $cwd . '/sapi/cgi/php-cgi';
249 global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
302 CWD : $cwd
867 find_files("{$cwd}/{$dir}", ($dir == 'ext'));
921 global $cwd;
926 $ta = strpos($a, "{$cwd}/tests") === 0 ? 1 + (strpos($a, "{$cwd}/test
[all...]
/PHP_5_6/win32/
H A Dregistry.c218 char tmp_buf[MAXPATHLEN], *cwd; local
226 cwd = strchr(tmp_buf, ':');
227 if (!cwd) {
229 cwd = tmp_buf;
232 cwd++;
234 while (*cwd == '\\' || *cwd == '/') {
235 cwd++;
237 spprintf(&path, 0, "%c\\%s\\%s", drive_letter, cwd, orig_path);
/PHP_5_6/TSRM/
H A Dtsrm_win32.c457 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env TSRMLS_DC) argument
542 res = CreateProcessAsUser(token_user, NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
545 res = CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
/PHP_5_6/Zend/
H A Dzend_virtual_cwd.c152 (d)->cwd = (char *) emalloc((s)->cwd_length+1); \
153 memcpy((d)->cwd, (s)->cwd, (s)->cwd_length+1);
156 efree((s)->cwd);
412 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
423 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
432 CWD_STATE_COPY(&cwd_g->cwd, &main_cwd_state);
448 char cwd[MAXPATHLEN]; local
452 result = getcwdpath(cwd, NULL, 1);
455 char *c=cwd;
566 char *cwd; local
1431 char cwd[MAXPATHLEN]; local
1957 char cwd[MAXPATHLEN]; local
[all...]
H A Dzend_virtual_cwd.h146 char *cwd; member in struct:_cwd_state
231 cwd_state cwd; member in struct:_virtual_cwd_globals
/PHP_5_6/ext/phar/
H A Dphar_internal.h181 char* cwd; variable
H A Dstream.c320 char *entry = idata->internal_file->filename, *cwd; local
326 } else if ((cwd = strrchr(entry, '/'))) {
327 PHAR_G(cwd_len) = cwd - entry;
328 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len));
332 PHAR_G(cwd) = NULL;
H A Dphar_object.c168 const char *cwd; local
258 PHAR_G(cwd) = NULL;
262 if ((cwd = zend_memrchr(entry, '/', entry_len))) {
264 if (entry == cwd) {
267 PHAR_G(cwd) = NULL;
269 PHAR_G(cwd_len) = cwd - (entry + 1);
270 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len));
272 PHAR_G(cwd_len) = cwd - entry;
273 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len));
298 if (PHAR_G(cwd)) {
[all...]
/PHP_5_6/ext/standard/
H A Ddir.c427 char cwd[MAXPATHLEN]; local
455 result = VCWD_GETCWD(cwd, MAXPATHLEN);
457 cwd[0] = '\0';
461 cwd[2] = '\0';
464 cwd_skip = strlen(cwd)+1;
466 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
H A Dproc_open.c450 /* {{{ proto resource proc_open(string command, array descriptorspec, array &pipes [, string cwd [, array env [, array other_options]]])
454 char *command, *cwd=NULL; local
497 &command_len, &descriptorspec, &pipes, &cwd, &cwd_len, &environment,
713 if (cwd == NULL) {
720 cwd = cur_cwd;
759 newprocok = CreateProcess(NULL, command, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
763 newprocok = CreateProcess(NULL, command_with_cmd, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
791 if (cwd) {
793 chdir2(cwd);
808 if (cwd
[all...]
/PHP_5_6/main/
H A Dfopen_wrappers.c749 char cwd[MAXPATHLEN]; local
755 cwd[0] = '\0';
764 memcpy(cwd, relative_to, relative_to_len+1U);
766 result = VCWD_GETCWD(cwd, MAXPATHLEN);
787 cwd[0] = '\0';
790 cwd[0] = '\0';
794 new_state.cwd = estrdup(cwd);
795 new_state.cwd_length = strlen(cwd);
798 efree(new_state.cwd);
[all...]
H A Dphp_open_temporary_file.c101 char cwd[MAXPATHLEN]; local
123 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) {
124 cwd[0] = '\0';
127 new_state.cwd = estrdup(cwd);
128 new_state.cwd_length = strlen(cwd);
131 efree(new_state.cwd);
135 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) {
141 if (spprintf(&opened_path, 0, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
143 efree(new_state.cwd);
[all...]
/PHP_5_6/ext/zip/
H A Dphp_zip.c183 new_state.cwd = CWD_STATE_ALLOC(1);
184 new_state.cwd[0] = '\0';
188 to a path relative to cwd (../../mydir/foo.txt > mydir/foo.txt)
191 path_cleaned = php_zip_make_relative_path(new_state.cwd, new_state.cwd_length);
220 CWD_STATE_FREE(new_state.cwd);
244 CWD_STATE_FREE(new_state.cwd);
253 CWD_STATE_FREE(new_state.cwd);
261 CWD_STATE_FREE(new_state.cwd);
267 CWD_STATE_FREE(new_state.cwd);
279 CWD_STATE_FREE(new_state.cwd);
533 char cwd[MAXPATHLEN]; local
639 char cwd[MAXPATHLEN]; local
[all...]
/PHP_5_6/ext/opcache/
H A DZendAccelerator.c152 * in ZCG(cwd) and ZCG(cwd_len). Later accel_getcwd() can use stored value and
157 char cwd[MAXPATHLEN]; local
160 if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
161 if (ZCG(cwd)) {
162 efree(ZCG(cwd));
164 ZCG(cwd_len) = strlen(cwd);
165 ZCG(cwd) = estrndup(cwd, ZCG(cwd_len));
167 if (ZCG(cwd)) {
168 efree(ZCG(cwd));
180 char cwd[MAXPATHLEN + 1]; local
943 char *cwd; local
1024 memcpy(ZCG(key), cwd, cwd_len); local
1728 char *cwd; local
[all...]
H A DZendAccelerator.h260 char *cwd; /* current working directory or NULL */ member in struct:_zend_accel_globals
261 int cwd_len; /* "cwd" string length */
/PHP_5_6/sapi/phpdbg/tests/
H A Drun-tests.php562 $cwd = dirname(__FILE__); variable
571 '%s/../phpdbg', $cwd
/PHP_5_6/main/streams/
H A Dplain_wrapper.c1426 char *cwd; local
1427 cwd = virtual_getcwd_ex(&cwd_len TSRMLS_CC);
1429 *(cwd+3) = '\0';
1431 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) {
1432 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN);
1435 efree(cwd);

Completed in 59 milliseconds