/PHP-5.5/win32/ |
H A D | registry.c | 218 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() local 226 cwd = strchr(tmp_buf, ':'); in UpdateIniFromRegistry() 227 if (!cwd) { in UpdateIniFromRegistry() 229 cwd = tmp_buf; in UpdateIniFromRegistry() 232 cwd++; in UpdateIniFromRegistry() 234 while (*cwd == '\\' || *cwd == '/') { in UpdateIniFromRegistry() 235 cwd++; in UpdateIniFromRegistry() 237 spprintf(&path, 0, "%c\\%s\\%s", drive_letter, cwd, orig_path); in UpdateIniFromRegistry()
|
/PHP-5.5/ |
H A D | server-tests.php | 179 $pipes, $cwd, $env); 226 $out = execute($php, $params, $code, $cwd, $env); 412 public $cwd; variable in testHarness 493 $this->cwd = getcwd(); 496 $this->conf['TEST_PHP_SRCDIR'] = $this->cwd; 569 if (!$cwd) $cwd = $this->conf['TEST_BASE_PATH']; 570 $tmp_file = "$cwd$pi"; 730 …$ta = strpos($a, "{$this->cwd}/tests")===0 ? 1 + (strpos($a, "{$this->cwd}/tests/run-test")===0 ? … 731 …$tb = strpos($b, "{$this->cwd}/tests")===0 ? 1 + (strpos($b, "{$this->cwd}/tests/run-test")===0 ? … 786 $exeinfo = "CWD : {$this->cwd}\n". [all …]
|
H A D | run-tests.php | 103 $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'; 303 CWD : $cwd 868 find_files("{$cwd}/{$dir}", ($dir == 'ext')); 922 global $cwd; 927 …$ta = strpos($a, "{$cwd}/tests") === 0 ? 1 + (strpos($a, "{$cwd}/tests/run-test") === 0 ? 1 : 0) :… 928 …$tb = strpos($b, "{$cwd}/tests") === 0 ? 1 + (strpos($b, "{$cwd}/tests/run-test") === 0 ? 1 : 0) :… 1072 global $leak_check, $cwd; [all …]
|
/PHP-5.5/sapi/roxen/ |
H A D | TODO | 31 - change cwd in single threaded mode
|
/PHP-5.5/sapi/thttpd/ |
H A D | thttpd.c | 444 smart_str_appends_ex(&s, TG(hc)->hs->cwd, 1);
|
H A D | thttpd_patch | 157 free( (void*) hs->cwd ); 177 char* cgi_pattern, char* charset, char* cwd, int no_log, FILE* logfp, 200 hs->cwd = strdup( cwd ); 201 if ( hs->cwd == (char*) 0 ) 984 char* cwd; 1019 char* cgi_pattern, char* charset, char* cwd, int no_log, FILE* logfp, 1558 port, cgi_pattern, charset, cwd, no_log, logfp, no_symlink, do_vhost,
|
/PHP-5.5/sapi/litespeed/ |
H A D | lsapi_main.c | 532 if ( !CWDG(cwd).cwd || in lsapi_chdir_primary_script() 533 ( strcmp( file_handle->filename, CWDG(cwd).cwd ) != 0 ) ) { in lsapi_chdir_primary_script() 534 CWDG(cwd).cwd_length = p - file_handle->filename; in lsapi_chdir_primary_script() 535 CWDG(cwd).cwd = (char *) realloc(CWDG(cwd).cwd, CWDG(cwd).cwd_length+1); in lsapi_chdir_primary_script() 536 memmove( CWDG(cwd).cwd, file_handle->filename, CWDG(cwd).cwd_length+1 ); in lsapi_chdir_primary_script()
|
/PHP-5.5/sapi/caudium/ |
H A D | TODO | 22 - change cwd in single threaded mode
|
/PHP-5.5/main/streams/ |
H A D | plain_wrapper.c | 1444 char *cwd; in _php_stream_fopen_with_path() local 1445 cwd = virtual_getcwd_ex(&cwd_len TSRMLS_CC); in _php_stream_fopen_with_path() 1447 *(cwd+3) = '\0'; in _php_stream_fopen_with_path() 1449 if (snprintf(trypath, MAXPATHLEN, "%s%s", cwd, filename) >= MAXPATHLEN) { in _php_stream_fopen_with_path() 1450 …php_error_docref(NULL TSRMLS_CC, E_NOTICE, "%s/%s path was truncated to %d", cwd, filename, MAXPAT… in _php_stream_fopen_with_path() 1453 free(cwd); in _php_stream_fopen_with_path()
|
/PHP-5.5/main/ |
H A D | php_open_temporary_file.c | 101 char cwd[MAXPATHLEN]; in php_do_open_temporary_file() local 123 if (!VCWD_GETCWD(cwd, MAXPATHLEN)) { in php_do_open_temporary_file() 124 cwd[0] = '\0'; in php_do_open_temporary_file() 127 new_state.cwd = strdup(cwd); in php_do_open_temporary_file() 128 new_state.cwd_length = strlen(cwd); in php_do_open_temporary_file() 131 free(new_state.cwd); in php_do_open_temporary_file() 135 if (IS_SLASH(new_state.cwd[new_state.cwd_length - 1])) { in php_do_open_temporary_file() 143 free(new_state.cwd); in php_do_open_temporary_file() 149 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) { in php_do_open_temporary_file() 154 free(new_state.cwd); in php_do_open_temporary_file() [all …]
|
H A D | fopen_wrappers.c | 749 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 = strdup(cwd); 795 new_state.cwd_length = strlen(cwd); 798 free(new_state.cwd); 804 memcpy(real_path, new_state.cwd, copy_len); [all …]
|
/PHP-5.5/ext/zip/ |
H A D | php_zip.c | 194 free(new_state.cwd); in php_zip_extract_file() 227 free(new_state.cwd); in php_zip_extract_file() 235 free(new_state.cwd); in php_zip_extract_file() 241 free(new_state.cwd); in php_zip_extract_file() 253 free(new_state.cwd); in php_zip_extract_file() 288 free(new_state.cwd); in php_zip_extract_file() 522 char cwd[MAXPATHLEN]; in php_zip_glob() local 546 cwd[0] = '\0'; in php_zip_glob() 550 cwd[2] = '\0'; in php_zip_glob() 640 cwd[0] = '\0'; in php_zip_pcre() [all …]
|
/PHP-5.5/ext/standard/tests/file/ |
H A D | unlink_variation10.phpt | 26 $cwd = getcwd(); 36 $cwd.'/'.$workDir.'/'.$tmpDir, 37 $cwd.'/./'.$workDir.'/'.$tmpDir, 38 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$tmpDir, 42 $cwd.'//'.$workDir.'//'.$tmpDir,
|
H A D | unlink_variation8-win32.phpt | 25 $cwd = __DIR__; 38 $cwd.'/'.$workDir.'/'.$tmpFile, 39 $cwd.'/./'.$workDir.'/'.$tmpFile, 40 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$tmpFile, 43 $cwd.'/BADDIR/'.$tmpFile, 47 $cwd.'/'.$workDir.'/'.$tmpFile.'/', 51 $cwd.'//'.$workDir.'//'.$tmpFile,
|
H A D | touch_variation5-win32.phpt | 20 $cwd = __DIR__; 21 chdir($cwd); 22 if (!mkdir($cwd . '/' . $workDir)) die("cannot create directory $workDir"); 35 $cwd.'/'.$workDir.'/'.$subDirOrFile, 36 $cwd.'/./'.$workDir.'/'.$subDirOrFile, 37 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$subDirOrFile, 40 $cwd.'/BADDIR/'.$subDirOrFile, 44 $cwd.'/'.$workDir.'/'.$subDirOrFile.'/', 48 $cwd.'//'.$workDir.'//'.$subDirOrFile,
|
H A D | touch_variation5.phpt | 22 $cwd = getcwd(); 35 $cwd.'/'.$workDir.'/'.$subDirOrFile, 36 $cwd.'/./'.$workDir.'/'.$subDirOrFile, 37 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$subDirOrFile, 40 $cwd.'/BADDIR/'.$subDirOrFile, 44 $cwd.'/'.$workDir.'/'.$subDirOrFile.'/', 48 $cwd.'//'.$workDir.'//'.$subDirOrFile,
|
H A D | touch_variation6-win32.phpt | 23 $cwd = getcwd(); 25 $unixifiedDirOrFile = '/'.substr(str_replace('\\','/',$cwd).'/'.$workDir.'/'.$subDirOrFile, 3); 38 $cwd.'\\'.$workDir.'\\'.$subDirOrFile, 39 $cwd.'\\.\\'.$workDir.'\\'.$subDirOrFile, 40 $cwd.'\\'.$workDir.'\\..\\'.$workDir.'\\'.$subDirOrFile, 43 $cwd.'\\BADDIR\\'.$subDirOrFile, 47 $cwd.'\\'.$workDir.'\\'.$subDirOrFile.'\\', 51 $cwd.'\\\\'.$workDir.'\\\\'.$subDirOrFile,
|
H A D | unlink_variation8.phpt | 26 $cwd = getcwd(); 40 $cwd.'/'.$workDir.'/'.$tmpFile, 41 $cwd.'/./'.$workDir.'/'.$tmpFile, 42 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$tmpFile, 45 $cwd.'/BADDIR/'.$tmpFile, 49 $cwd.'/'.$workDir.'/'.$tmpFile.'/', 53 $cwd.'//'.$workDir.'//'.$tmpFile,
|
H A D | unlink_variation9-win32.phpt | 25 $cwd = __DIR__; 26 $unixifiedFile = '/'.substr(str_replace('\\','/',$cwd).'/'.$workDir.'/'.$tmpFile, 3); 39 $cwd.'\\'.$workDir.'\\'.$tmpFile, 40 $cwd.'\\.\\'.$workDir.'\\'.$tmpFile, 41 $cwd.'\\'.$workDir.'\\..\\'.$workDir.'\\'.$tmpFile, 44 $cwd.'\\BADDIR\\'.$tmpFile, 48 $cwd.'\\'.$workDir.'\\'.$tmpFile.'\\', 52 $cwd.'\\\\'.$workDir.'\\\\'.$tmpFile,
|
H A D | rmdir_variation3-win32.phpt | 23 $cwd = getcwd(); 25 $unixifiedDir = '/'.substr(str_replace('\\','/',$cwd).'/'.$workDir.'/'.$subDir, 3); 38 $cwd.'\\'.$workDir.'\\'.$subDir, 39 $cwd.'\\.\\'.$workDir.'\\'.$subDir, 40 $cwd.'\\'.$workDir.'\\..\\'.$workDir.'\\'.$subDir, 43 $cwd.'\\BADDIR\\'.$subDir, 47 $cwd.'\\'.$workDir.'\\'.$subDir.'\\', 51 $cwd.'\\\\'.$workDir.'\\\\'.$subDir,
|
H A D | rmdir_variation3.phpt | 18 $cwd = getcwd(); 31 $cwd.'/'.$workDir.'/'.$subDir, 32 $cwd.'/./'.$workDir.'/'.$subDir, 33 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$subDir, 36 $cwd.'/BADDIR/'.$subDir, 40 $cwd.'/'.$workDir.'/'.$subDir.'/', 44 $cwd.'//'.$workDir.'//'.$subDir,
|
H A D | mkdir_variation5-win32.phpt | 23 $cwd = getcwd(); 25 $unixifiedDir = '/'.substr(str_replace('\\','/',$cwd).'/'.$workDir.'/'.$subDir, 3); 38 $cwd.'\\'.$workDir.'\\'.$subDir, 39 $cwd.'\\.\\'.$workDir.'\\'.$subDir, 40 $cwd.'\\'.$workDir.'\\..\\'.$workDir.'\\'.$subDir, 43 $cwd.'\\BADDIR\\'.$subDir, 47 $cwd.'\\'.$workDir.'\\'.$subDir.'\\', 51 $cwd.'\\\\'.$workDir.'\\\\'.$subDir,
|
H A D | mkdir_variation5.phpt | 23 $cwd = getcwd(); 36 $cwd.'/'.$workDir.'/'.$subDir, 37 $cwd.'/./'.$workDir.'/'.$subDir, 38 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$subDir, 41 $cwd.'/BADDIR/'.$subDir, 45 $cwd.'/'.$workDir.'/'.$subDir.'/', 49 $cwd.'//'.$workDir.'//'.$subDir,
|
/PHP-5.5/ext/standard/ |
H A D | proc_open.c | 453 char *command, *cwd=NULL; in PHP_FUNCTION() local 496 &command_len, &descriptorspec, &pipes, &cwd, &cwd_len, &environment, in PHP_FUNCTION() 712 if (cwd == NULL) { in PHP_FUNCTION() 719 cwd = cur_cwd; in PHP_FUNCTION() 758 …newprocok = CreateProcess(NULL, command, &security, &security, TRUE, dwCreateFlags, env.envp, cwd,… in PHP_FUNCTION() 790 if (cwd) { in PHP_FUNCTION() 792 chdir2(cwd); in PHP_FUNCTION() 807 if (cwd && orig_cwd) { in PHP_FUNCTION() 818 if (cwd && orig_cwd) { in PHP_FUNCTION() 878 if (cwd) { in PHP_FUNCTION() [all …]
|
H A D | dir.c | 427 char cwd[MAXPATHLEN]; in PHP_FUNCTION() local 455 result = VCWD_GETCWD(cwd, MAXPATHLEN); in PHP_FUNCTION() 457 cwd[0] = '\0'; in PHP_FUNCTION() 461 cwd[2] = '\0'; in PHP_FUNCTION() 464 cwd_skip = strlen(cwd)+1; in PHP_FUNCTION() 466 snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern); in PHP_FUNCTION()
|