/PHP-7.0/ext/gd/tests/ |
H A D | png2gd.phpt | 15 $cwd = dirname(__FILE__); 18 echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 26 echo imagepng(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed'; 30 echo imagepng(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.png") ? 'ok' : 'failed'; 33 @unlink($cwd . "/test.gd1"); 34 @unlink($cwd . "/test.gd2"); 35 @unlink($cwd . "/test_gd1.png"); 36 @unlink($cwd . "/test_gd2.png");
|
H A D | jpg2gd.phpt | 15 $cwd = dirname(__FILE__); 18 echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 26 echo imagejpeg(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed'; 30 echo imagejpeg(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok' : 'failed'; 33 @unlink($cwd . "/test.gd1"); 34 @unlink($cwd . "/test.gd2"); 35 @unlink($cwd . "/test_gd1.jpeg"); 36 @unlink($cwd . "/test_gd2.jpeg");
|
H A D | jpeg2png.phpt | 18 $cwd = dirname(__FILE__); 21 …echo imagejpeg(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test_jpeg.jpeg") ? 'ok' : 'fa… 25 …echo imagepng(imagecreatefromjpeg($cwd . "/test_jpeg.jpeg"), $cwd . "/test_jpng.png") ? 'ok' : 'fa… 29 …echo imagepng(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test_png.png") ? 'ok' : 'fai… 33 …echo imagejpeg(imagecreatefrompng($cwd . "/test_png.png"), $cwd . "/test_pjpeg.jpeg") ? 'ok' : 'fa… 36 @unlink($cwd . "/test_jpeg.jpeg"); 37 @unlink($cwd . "/test_jpng.png"); 38 @unlink($cwd . "/test_png.png"); 39 @unlink($cwd . "/test_pjpeg.jpeg");
|
H A D | xpm2gd.phpt | 15 $cwd = dirname(__FILE__); 18 echo imagegd(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 25 @unlink($cwd . "/test.gd1"); 26 @unlink($cwd . "/test.gd2");
|
H A D | gif2gd.phpt | 15 $cwd = dirname(__FILE__); 18 echo imagegd(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 25 @unlink($cwd . "/test.gd1"); 26 @unlink($cwd . "/test.gd2");
|
H A D | gif.phpt | 17 $cwd = dirname(__FILE__); 46 $cwd = dirname(__FILE__); 51 imagegif($im, $cwd . '/test_gif.gif'); 61 imagegif($im, $cwd . '/test_gif.gif'); 73 imagegif($im, $cwd . '/test_gif.gif'); 85 imagegif($im, $cwd . '/test_gif.gif'); 97 imagegif($im, $cwd . '/test_gif.gif'); 108 imagegif($im, $cwd . '/test_gif.gif'); 119 imagegif($im, $cwd . '/test_gif.gif'); 135 @unlink($cwd . "/test_gif.gif"); [all …]
|
H A D | xbm2png.phpt | 17 $cwd = dirname(__FILE__); 20 …echo imagepng(imagecreatefromxbm($cwd . "/conv_test.xbm"), $cwd . "/test_xbm.png") ? 'ok' : 'faile… 23 @unlink($cwd . "/test_xbm.png");
|
H A D | xpm2jpg.phpt | 18 $cwd = dirname(__FILE__); 21 …echo imagejpeg(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test_xpm.jpeg") ? 'ok' : 'fai… 24 @unlink($cwd . "/test_xpm.jpeg");
|
H A D | xpm2png.phpt | 18 $cwd = dirname(__FILE__); 21 …echo imagepng(imagecreatefromxpm($cwd . "/conv_test.xpm"), $cwd . "/test_xpm.png") ? 'ok' : 'faile… 24 @unlink($cwd . "/test_xpm.png");
|
H A D | pngcomp.phpt | 15 $cwd = dirname(__FILE__); 21 imagepng($im, $cwd . '/test_pngcomp.png', 9); 23 $im2 = imagecreatefrompng($cwd . '/test_pngcomp.png'); 29 @unlink($cwd . "/test_pngcomp.png");
|
H A D | gif2jpg.phpt | 18 $cwd = dirname(__FILE__); 21 …echo imagejpeg(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test_gif.jpeg") ? 'ok' : 'fai… 24 @unlink($cwd . "/test_gif.jpeg");
|
H A D | gif2png.phpt | 18 $cwd = dirname(__FILE__); 21 …echo imagepng(imagecreatefromgif($cwd . "/conv_test.gif"), $cwd . "/test_gif.png") ? 'ok' : 'faile… 24 @unlink($cwd . "/test_gif.png");
|
H A D | bug48732.phpt | 10 $cwd = dirname(__FILE__); 11 $font = "$cwd/Tuffy.ttf"; 16 imagepng($g, "$cwd/bug48732.png");
|
H A D | bug49600.phpt | 11 $cwd = dirname(__FILE__); 12 $font = "$cwd/Tuffy.ttf"; 18 $y = imagettfbbox(32, 0, "$cwd/Tuffy.ttf", $c);
|
H A D | bug48801.phpt | 10 $cwd = dirname(__FILE__); 11 $font = "$cwd/Tuffy.ttf";
|
/PHP-7.0/Zend/ |
H A D | zend_virtual_cwd.c | 476 ZeroMemory(&cwd, sizeof(cwd)); in virtual_cwd_startup() 478 result = getcwd(cwd, sizeof(cwd)); in virtual_cwd_startup() 487 cwd[0] = toupper(cwd[0]); in virtual_cwd_startup() 490 main_cwd_state.cwd = strdup(cwd); in virtual_cwd_startup() 519 if (CWDG(cwd).cwd == NULL) { in virtual_cwd_activate() 528 if (CWDG(cwd).cwd != NULL) { in virtual_cwd_deactivate() 530 CWDG(cwd).cwd = NULL; in virtual_cwd_deactivate() 1860 VCWD_CHDIR(CWDG(cwd).cwd); in virtual_popen() 1883 dir = CWDG(cwd).cwd; in virtual_popen() 1890 dir = CWDG(cwd).cwd; in virtual_popen() [all …]
|
/PHP-7.0/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 = estrdup(cwd); in php_do_open_temporary_file() 128 new_state.cwd_length = (int)strlen(cwd); in php_do_open_temporary_file() 131 efree(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() 142 efree(new_state.cwd); in php_do_open_temporary_file() 148 if (GetTempFileName(new_state.cwd, pfx, 0, opened_path)) { in php_do_open_temporary_file() 152 efree(new_state.cwd); in php_do_open_temporary_file() [all …]
|
/PHP-7.0/ext/standard/tests/file/ |
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 | 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 | 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,
|
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 | 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 | 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 | unlink_variation10.phpt | 26 $cwd = getcwd(); 36 $cwd.'/'.$workDir.'/'.$tmpDir, 37 $cwd.'/./'.$workDir.'/'.$tmpDir, 38 $cwd.'/'.$workDir.'/../'.$workDir.'/'.$tmpDir, 42 $cwd.'//'.$workDir.'//'.$tmpDir,
|
/PHP-7.0/win32/ |
H A D | registry.c | 227 char tmp_buf[MAXPATHLEN], *cwd; in UpdateIniFromRegistry() local 235 cwd = strchr(tmp_buf, ':'); in UpdateIniFromRegistry() 236 if (!cwd) { in UpdateIniFromRegistry() 238 cwd = tmp_buf; in UpdateIniFromRegistry() 241 cwd++; in UpdateIniFromRegistry() 243 while (*cwd == '\\' || *cwd == '/') { in UpdateIniFromRegistry() 244 cwd++; in UpdateIniFromRegistry() 246 spprintf(&path, 0, "%c\\%s\\%s", drive_letter, cwd, orig_path); in UpdateIniFromRegistry()
|