/PHP-5.6/ext/standard/tests/file/ |
H A D | fscanf_variation51.phpt | 18 $filename = "$file_path/fscanf_variation51.tmp"; 19 $file_handle = fopen($filename, "w"); 21 exit("Error:failed to open file $filename"); 43 $file_handle = fopen($filename, $mode); 45 exit("Error:failed to open file $filename"); 55 unlink($filename); 63 $filename = "$file_path/fscanf_variation51.tmp"; 64 if(file_exists($filename)) { 65 unlink($filename);
|
H A D | symlink_link_linkinfo_is_link_variation7.phpt | 14 Prototype: bool is_link ( string $filename ); 29 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp"; 37 $fp = fopen($filename, "w"); 41 // create soft link to $filename 42 var_dump( symlink($filename, $linkname) ); 57 // create hard link to $filename 58 var_dump( link($filename, $linkname) ); 70 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp"; 71 unlink($filename);
|
H A D | readfile_variation6.phpt | 7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]]) 23 $filename = "afile.txt"; 24 $secondFile = $dir2."/".$filename; 36 global $secondFile, $filename; 40 readfile($filename, true);
|
H A D | readfile_variation7.phpt | 7 /* Prototype : int readfile(string filename [, bool use_include_path[, resource context]]) 23 $filename = "readFileVar7.tmp"; 24 $scriptLocFile = dirname(__FILE__)."/".$filename; 36 global $scriptLocFile, $filename; 40 readfile($filename, true);
|
H A D | 005_variation2-win32.phpt | 14 Prototype: int fileatime ( string $filename ); 18 Prototype: int filemtime ( string $filename ); 22 Prototype: int filectime ( string $filename ); 26 Prototype: bool touch ( string $filename [, int $time [, int $atime]] ); 28 named in the filename parameter to the value given in time. 32 Prototype: void stat_fn(string $filename); 35 function stat_fn( $filename ) { 36 echo "\n-- File '$filename' --\n"; 38 echo fileatime($filename)."\n"; 41 echo filemtime($filename)."\n"; [all …]
|
H A D | file_get_contents_variation1.phpt | 7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte… 24 $filename = "afile.txt"; 25 $secondFile = $dir2."/".$filename; 37 global $secondFile, $filename; 41 $line = file_get_contents($filename, true);
|
H A D | file_get_contents_variation2.phpt | 7 /* Prototype : string file_get_contents(string filename [, bool use_include_path [, resource conte… 25 $filename = 'FileGetContentsVar2.tmp'; 26 $scriptLocFile = dirname(__FILE__)."/".$filename; 38 global $scriptLocFile, $filename; 42 $line = file_get_contents($filename, true);
|
H A D | is_file_variation3.phpt | 5 /* Prototype: bool is_file ( string $filename ); 6 Description: Tells whether the filename is a regular file 7 Returns TRUE if the filename exists and is a regular file 32 foreach( $filenames as $filename ) { 33 var_dump( is_file($filename) );
|
H A D | chmod_variation2-win32.phpt | 20 $filename = basename($filepath); 25 var_dump(chmod("./$test_dirname/../$filename", 0777)); 26 var_dump(chmod("./$test_dirname/../$filename", 0755)); 32 var_dump(chmod("./$test_dirname/bad_dir/../../$filename", 0755)); 38 var_dump(chmod("../$filename", 0777)); 39 var_dump(chmod("../$filename", 0755));
|
H A D | is_file_variation1.phpt | 5 /* Prototype: bool is_file ( string $filename ); 6 Description: Tells whether the filename is a regular file 7 Returns TRUE if the filename exists and is a regular file 16 $filename = $file_path."/is_file_variation1.tmp"; 17 $file_handle = fopen($filename, "w" ); 20 var_dump( is_file($filename) );
|
H A D | file_put_contents_variation4.phpt | 20 $filename = basename(__FILE__, ".php") . ".tmp"; 37 global $filename; 40 file_put_contents($filename, (binary) "File in include path", FILE_USE_INCLUDE_PATH); 41 $line = file_get_contents($filename); 43 unlink($filename);
|
H A D | fscanf_variation52.phpt | 33 $filename = "$file_path/fscanf_variation52.tmp"; 34 $file_handle = fopen($filename, "w"); 36 exit("Error:failed to open file $filename"); 41 $file_handle = fopen($filename, $mode); 43 exit("Error:failed to open file $filename"); 53 unlink($filename); 61 $filename = "$file_path/fscanf_variation52.tmp"; 62 if(file_exists($filename)) { 63 unlink($filename);
|
H A D | pathinfo_basic.phpt | 82 [%u|b%"filename"]=> 97 [%u|b%"filename"]=> 112 [%u|b%"filename"]=> 127 [%u|b%"filename"]=> 142 [%u|b%"filename"]=> 157 [%u|b%"filename"]=> 172 [%u|b%"filename"]=> 187 [%u|b%"filename"]=> 202 [%u|b%"filename"]=> 217 [%u|b%"filename"]=> [all …]
|
/PHP-5.6/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 7 $filename = __FILE__ . '.tmp'; 8 $fp = fopen('File://' . $filename, 'w+'); 16 $dirname = dirname($filename); 18 $relative_filename = basename($filename); 25 unlink($filename);
|
/PHP-5.6/ext/gd/tests/ |
H A D | bug66590.phpt | 13 $filename = __DIR__ . '/bug66590.webp'; 17 imagewebp($im, $filename); 18 $stream = fopen($filename, 'rb'); 23 var_dump($length === filesize($filename));
|
H A D | test_image_equals_file_palette.phpt | 16 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'test_image_equals_file_palette.png'; 17 imagepng($im, $filename); 24 test_image_equals_file($filename, $im); 32 test_image_equals_file($filename, $im);
|
H A D | createfromwbmp2_extern.phpt | 10 $filename = dirname(__FILE__) . '/_tmp.wbmp'; 11 $fp = fopen($filename,"wb"); 13 exit("Failed to create <$filename>"); 41 $im = imagecreatefromwbmp($filename); 42 unlink($filename);
|
H A D | createfromwbmp2.phpt | 10 $filename = dirname(__FILE__) . '/_tmp.wbmp'; 11 $fp = fopen($filename,"wb"); 13 exit("Failed to create <$filename>"); 41 $im = imagecreatefromwbmp($filename); 42 unlink($filename);
|
H A D | imageloadfont_invalid.phpt | 9 $filename = dirname(__FILE__) . '/font.gdf'; 11 $fp = fopen($filename, 'wb'); 16 $font = imageloadfont($filename); 19 unlink($filename);
|
H A D | webp_basic.phpt | 16 $filename = __DIR__ . '/webp_basic.webp'; 27 imagewebp($im1, $filename); 29 $im2 = imagecreatefromwebp($filename); 30 imagewebp($im2, $filename);
|
/PHP-5.6/ext/zlib/tests/ |
H A D | zlib_wrapper_fflush_basic.phpt | 12 $filename = "zlib_wrapper_fflush_basic.txt.gz"; 13 $h = gzopen($filename, 'w'); 22 $h = gzopen($filename, 'r'); 26 unlink($filename);
|
/PHP-5.6/ext/sockets/tests/ |
H A D | socket_create_listen-nobind.phpt | 8 $filename = dirname(__FILE__) . '/006_root_check.tmp'; 9 $fp = fopen($filename, 'w'); 11 if (fileowner($filename) == 0) { 12 unlink ($filename);
|
/PHP-5.6/sapi/cgi/tests/ |
H A D | 004.phpt | 15 $filename = dirname(__FILE__).'/004.test.php'; 27 file_put_contents($filename, $code); 29 var_dump(`$php -n -f "$filename" 2>/dev/null`); 32 @unlink($filename);
|
/PHP-5.6/ext/hash/tests/ |
H A D | hash_file_error.phpt | 9 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false]) 18 $filename = 'hash_file_error_example.txt'; 19 file_put_contents( $filename, 'The quick brown fox jumped over the lazy dog.' ); 24 var_dump( hash_file( 'foobar', $filename ) ); 34 var_dump( hash_file( 'md5', $filename, false, $extra_arg ) ); 41 $filename = 'hash_file_error_example.txt'; 42 unlink( $filename );
|
/PHP-5.6/ext/standard/tests/strings/ |
H A D | bug65947.phpt | 7 $filename = 'test.toto'; 11 $b2 = basename($filename); 12 if ($filename != $b2)
|