/PHP-5.4/ext/gd/tests/ |
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | bug43073.phpt | 13 $cwd = dirname(__FILE__); 14 $font = "$cwd/Tuffy.ttf"; 31 imagepng($g, "$cwd/bug43073.png");
|
H A D | bug43073_1.phpt | 13 $cwd = dirname(__FILE__); 14 $font = "$cwd/Tuffy.ttf"; 31 imagepng($g, "$cwd/bug43073.png");
|
/PHP-5.4/TSRM/ |
H A D | tsrm_virtual_cwd.c | 153 memcpy((d)->cwd, (s)->cwd, (s)->cwd_length+1); 454 result = getcwd(cwd, sizeof(cwd)); in virtual_cwd_startup() 463 cwd[0] = toupper(cwd[0]); in virtual_cwd_startup() 466 main_cwd_state.cwd = strdup(cwd); in virtual_cwd_startup() 538 char *cwd; in virtual_getcwd() local 546 free(cwd); in virtual_getcwd() 551 free(cwd); in virtual_getcwd() 1853 VCWD_CHDIR(CWDG(cwd).cwd); in virtual_popen() 1876 dir = CWDG(cwd).cwd; in virtual_popen() 1883 dir = CWDG(cwd).cwd; in virtual_popen() [all …]
|
/PHP-5.4/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 …]
|
/PHP-5.4/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,
|
/PHP-5.4/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()
|