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

/PHP_TRUNK/sapi/phpdbg/tests/
H A Drun-tests.php562 $cwd = dirname(__FILE__); variable
571 '%s/../phpdbg', $cwd
/PHP_TRUNK/
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
492 $this->cwd = getcwd(); variable
495 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd;
517 //$this->ini_overwrites['include_path'] = $this->cwd.($this->iswin32?';.;':':.:').$this->exec_info['INCLUDE_PATH'];
564 function runscript($script,$removeheaders=false,$cwd=NULL)
568 if (!$cwd)
1099 $cwd = str_replace('\\\\','/',$this->cwd); variable
[all...]
H A Drun-tests.php103 $cwd = getcwd(); variable
149 $php = $cwd . '/sapi/cli/php';
153 $php_cgi = $cwd . '/sapi/cgi/php-cgi';
169 $php_cgi = $cwd . '/sapi/cgi/php-cgi';
250 global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header, $no_file_cache;
303 CWD : $cwd
871 find_files("{$cwd}/{$dir}", ($dir == 'ext'));
925 global $cwd;
930 $ta = strpos($a, "{$cwd}/tests") === 0 ? 1 + (strpos($a, "{$cwd}/test
[all...]
/PHP_TRUNK/TSRM/
H A Dtsrm_win32.c457 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env) 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_TRUNK/ext/standard/
H A Ddir.c434 char cwd[MAXPATHLEN]; local
462 result = VCWD_GETCWD(cwd, MAXPATHLEN);
464 cwd[0] = '\0';
468 cwd[2] = '\0';
471 cwd_skip = (int)strlen(cwd)+1;
473 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
H A Dproc_open.c422 /* {{{ proto resource proc_open(string command, array descriptorspec, array &pipes [, string cwd [, array env [, array other_options]]])
426 char *command, *cwd=NULL; local
472 &command_len, &descriptorspec, &pipes, &cwd, &cwd_len, &environment,
690 if (cwd == NULL) {
697 cwd = cur_cwd;
736 newprocok = CreateProcess(NULL, command, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
740 newprocok = CreateProcess(NULL, command_with_cmd, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
768 if (cwd) {
770 chdir2(cwd);
785 if (cwd
[all...]
/PHP_TRUNK/main/
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 = (int)strlen(cwd);
131 efree(new_state.cwd);
135 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) {
141 if (snprintf(opened_path, MAXPATHLEN, "%s%s%sXXXXXX", new_state.cwd, trailing_slash, pfx) >= MAXPATHLEN) {
142 efree(new_state.cwd);
[all...]
H A Dfopen_wrappers.c759 char cwd[MAXPATHLEN]; local
770 cwd[0] = '\0';
779 memcpy(cwd, relative_to, relative_to_len+1U);
781 result = VCWD_GETCWD(cwd, MAXPATHLEN);
802 cwd[0] = '\0';
805 cwd[0] = '\0';
809 new_state.cwd = estrdup(cwd);
810 new_state.cwd_length = (int)strlen(cwd);
813 efree(new_state.cwd);
[all...]
/PHP_TRUNK/win32/
H A Dregistry.c227 char tmp_buf[MAXPATHLEN], *cwd; local
235 cwd = strchr(tmp_buf, ':');
236 if (!cwd) {
238 cwd = tmp_buf;
241 cwd++;
243 while (*cwd == '\\' || *cwd == '/') {
244 cwd++;
246 spprintf(&path, 0, "%c\\%s\\%s", drive_letter, cwd, orig_path);
/PHP_TRUNK/Zend/
H A Dzend_virtual_cwd.h146 char *cwd; member in struct:_cwd_state
231 cwd_state cwd; member in struct:_virtual_cwd_globals
H A Dzend_virtual_cwd.c140 (d)->cwd = (char *) emalloc((s)->cwd_length+1); \
141 memcpy((d)->cwd, (s)->cwd, (s)->cwd_length+1);
144 efree((s)->cwd);
411 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
422 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
431 CWD_STATE_COPY(&cwd_g->cwd, &main_cwd_state);
447 char cwd[MAXPATHLEN]; local
451 result = getcwdpath(cwd, NULL, 1);
454 char *c=cwd;
570 char *cwd; local
1435 char cwd[MAXPATHLEN]; local
1912 char cwd[MAXPATHLEN]; local
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h234 zend_string *cwd; /* current working directory or NULL */ member in struct:_zend_accel_globals
H A DZendAccelerator.c156 * in ZCG(cwd) and ZCG(cwd_len). Later accel_getcwd() can use stored value and
161 char cwd[MAXPATHLEN]; local
164 if (VCWD_GETCWD(cwd, MAXPATHLEN)) {
165 if (ZCG(cwd)) {
166 zend_string_release(ZCG(cwd));
168 ZCG(cwd) = zend_string_init(cwd, strlen(cwd), 0);
170 if (ZCG(cwd)) {
171 zend_string_release(ZCG(cwd));
184 char cwd[MAXPATHLEN + 1]; local
928 const char *include_path = NULL, *cwd = NULL; local
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.c154 new_state.cwd = CWD_STATE_ALLOC(1);
155 new_state.cwd[0] = '\0';
159 to a path relative to cwd (../../mydir/foo.txt > mydir/foo.txt)
162 path_cleaned = php_zip_make_relative_path(new_state.cwd, new_state.cwd_length);
191 CWD_STATE_FREE(new_state.cwd);
203 CWD_STATE_FREE(new_state.cwd);
212 CWD_STATE_FREE(new_state.cwd);
220 CWD_STATE_FREE(new_state.cwd);
226 CWD_STATE_FREE(new_state.cwd);
238 CWD_STATE_FREE(new_state.cwd);
496 char cwd[MAXPATHLEN]; local
602 char cwd[MAXPATHLEN]; local
[all...]
/PHP_TRUNK/ext/phar/
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_internal.h183 char* cwd; variable
H A Dphar_object.c148 const char *cwd; local
239 PHAR_G(cwd) = NULL;
244 if ((cwd = zend_memrchr(entry, '/', entry_len))) {
246 if (entry == cwd) {
249 PHAR_G(cwd) = NULL;
251 PHAR_G(cwd_len) = cwd - (entry + 1);
252 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len));
254 PHAR_G(cwd_len) = cwd - entry;
255 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len));
279 if (PHAR_G(cwd)) {
[all...]
/PHP_TRUNK/main/streams/
H A Dplain_wrapper.c1464 char *cwd; local
1465 cwd = virtual_getcwd_ex(&cwd_len);
1467 *(cwd+3) = '\0';
1469 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) {
1470 php_error_docref(NULL, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN);
1473 efree(cwd);

Completed in 34 milliseconds