Searched refs:cwd (Results 1 - 23 of 23) sorted by relevance

/PHP_5_3/
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';
247 global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
300 CWD : $cwd
848 find_files("{$cwd}/{$dir}", ($dir == 'ext'));
902 global $cwd;
907 $ta = strpos($a, "{$cwd}/tests") === 0 ? 1 + (strpos($a, "{$cwd}/test
[all...]
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...]
/PHP_5_3/ext/ftp/tests/
H A Dserver.inc77 global $cwd;
80 $cwd = $dir;
84 $cwd = "$cwd/$dir";
87 $old = $cwd;
88 $cwd = preg_replace('@/?[^/]+/\.\.@', '', $cwd);
89 } while ($old != $cwd);
91 $cwd = strtr($cwd, arra
[all...]
/PHP_5_3/TSRM/
H A Dtsrm_virtual_cwd.c152 (d)->cwd = (char *) malloc((s)->cwd_length+1); \
153 memcpy((d)->cwd, (s)->cwd, (s)->cwd_length+1);
156 free((s)->cwd);
414 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISDIR(buf.st_mode))
425 if (php_sys_stat(state->cwd, &buf) == 0 && S_ISREG(buf.st_mode))
434 CWD_STATE_COPY(&cwd_g->cwd, &main_cwd_state);
444 CWD_STATE_FREE(&cwd_g->cwd);
451 char cwd[MAXPATHLEN]; local
455 result = getcwdpath(cwd, NUL
550 char *cwd; local
1417 char cwd[MAXPATHLEN]; local
1942 char cwd[MAXPATHLEN]; local
[all...]
H A Dtsrm_virtual_cwd.h146 char *cwd; member in struct:_cwd_state
229 cwd_state cwd; member in struct:_virtual_cwd_globals
H A Dtsrm_win32.c457 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env) argument
544 res = CreateProcessAsUser(token_user, NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
547 res = CreateProcess(NULL, cmd, &security, &security, security.bInheritHandle, dwCreateFlags, env, cwd, &startup, &process);
H A Dtsrm_win32.h98 TSRM_API FILE *popen_ex(const char *command, const char *type, const char *cwd, char *env);
/PHP_5_3/ext/standard/
H A Dbasic_functions.c1885 ZEND_ARG_INFO(0, cwd)
H A Ddir.c427 char cwd[MAXPATHLEN]; local
459 result = VCWD_GETCWD(cwd, MAXPATHLEN);
461 cwd[0] = '\0';
465 cwd[2] = '\0';
468 cwd_skip = strlen(cwd)+1;
470 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
H A Dproc_open.c490 /* {{{ proto resource proc_open(string command, array descriptorspec, array &pipes [, string cwd [, array env [, array other_options]]])
494 char *command, *cwd=NULL; local
536 &command_len, &descriptorspec, &pipes, &cwd, &cwd_len, &environment,
754 if (cwd == NULL) {
800 newprocok = CreateProcess(NULL, command, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
804 newprocok = CreateProcess(NULL, command_with_cmd, &security, &security, TRUE, dwCreateFlags, env.envp, cwd, &si, &pi);
832 if (cwd) {
834 chdir2(cwd);
849 if (cwd && orig_cwd) {
860 if (cwd
[all...]
/PHP_5_3/main/
H A Dfopen_wrappers.c848 char cwd[MAXPATHLEN]; local
854 cwd[0] = '\0';
863 memcpy(cwd, relative_to, relative_to_len+1U);
865 result = VCWD_GETCWD(cwd, MAXPATHLEN);
881 cwd[0] = '\0';
884 cwd[0] = '\0';
888 new_state.cwd = strdup(cwd);
889 new_state.cwd_length = strlen(cwd);
892 free(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 = strdup(cwd);
128 new_state.cwd_length = strlen(cwd);
131 free(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 free(new_state.cwd);
[all...]
/PHP_5_3/main/streams/
H A Dplain_wrapper.c1390 char *cwd; local
1391 cwd = virtual_getcwd_ex(&cwd_len TSRMLS_CC);
1393 *(cwd+3) = '\0';
1395 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) {
1396 php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPATHLEN);
1399 free(cwd);
/PHP_5_3/sapi/litespeed/
H A Dlsapi_main.c446 if ( !CWDG(cwd).cwd ||
447 ( strcmp( file_handle->filename, CWDG(cwd).cwd ) != 0 ) ) {
448 CWDG(cwd).cwd_length = p - file_handle->filename;
449 CWDG(cwd).cwd = (char *) realloc(CWDG(cwd).cwd, CWDG(cwd)
[all...]
/PHP_5_3/sapi/thttpd/
H A Dthttpd.c444 smart_str_appends_ex(&s, TG(hc)->hs->cwd, 1);
/PHP_5_3/ext/phar/
H A Dfunc_interceptors.c691 save = PHAR_G(cwd);
696 PHAR_G(cwd) = "/";
698 /* clean path without cwd */
701 PHAR_G(cwd) = save;
711 PHAR_G(cwd) = save;
732 PHAR_G(cwd) = save;
1041 PHAR_G(cwd) = NULL;
H A Dphar.c2162 memcpy(newpath, PHAR_G(cwd), newpath_len);
3612 PHAR_G(cwd) = NULL;
3652 if (PHAR_G(cwd)) {
3653 efree(PHAR_G(cwd));
3656 PHAR_G(cwd) = NULL;
H A Dphar_internal.h197 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.c167 char *name = NULL, buf[8192], *cwd; local
257 PHAR_G(cwd) = NULL;
261 if ((cwd = zend_memrchr(entry, '/', entry_len))) {
263 if (entry == cwd) {
266 PHAR_G(cwd) = NULL;
268 PHAR_G(cwd_len) = cwd - (entry + 1);
269 PHAR_G(cwd) = estrndup(entry + 1, PHAR_G(cwd_len));
271 PHAR_G(cwd_len) = cwd - entry;
272 PHAR_G(cwd) = estrndup(entry, PHAR_G(cwd_len));
297 if (PHAR_G(cwd)) {
[all...]
H A Dutil.c48 /* for links to relative location, prepend cwd of the entry */
271 if (!zend_is_executing(TSRMLS_C) || !PHAR_G(cwd)) {
324 spprintf(&path, MAXPATHLEN, "phar://%s/%s%c%s", arch, PHAR_G(cwd), DEFAULT_DIR_SEPARATOR, PG(include_path));
363 if (!zend_is_executing(TSRMLS_C) || !PHAR_G(cwd)) {
/PHP_5_3/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_3/ext/zip/
H A Dphp_zip.c157 new_state.cwd = (char*)malloc(1);
158 new_state.cwd[0] = '\0';
162 to a path relative to cwd (../../mydir/foo.txt > mydir/foo.txt)
165 path_cleaned = php_zip_make_relative_path(new_state.cwd, new_state.cwd_length);
194 free(new_state.cwd);
218 free(new_state.cwd);
227 free(new_state.cwd);
235 free(new_state.cwd);
242 free(new_state.cwd);
254 free(new_state.cwd);
531 char cwd[MAXPATHLEN]; local
637 char cwd[MAXPATHLEN]; local
[all...]

Completed in 49 milliseconds