/PHP-5.5/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.5/ext/standard/tests/file/ |
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 | 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 | 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 | 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 …]
|
H A D | fgetss.phpt | 6 $filename = dirname(__FILE__)."/fgetss.html"; 19 file_put_contents($filename, $str); 20 $fp = fopen($filename, "r"); 26 file_put_contents($filename, $str); 27 $fp = fopen($filename, "r"); 37 @unlink($filename);
|
H A D | filesize_variation3.phpt | 11 Prototype : int filesize ( string $filename ); 19 $filename = $file_path."/filesize_variation3.tmp"; 20 $file_handle = fopen($filename, "w"); 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 29 $file_handle = fopen($filename, "r+"); 32 var_dump( filesize($filename) );
|
H A D | filesize_variation3-win32.phpt | 11 Prototype : int filesize ( string $filename ); 19 $filename = $file_path."/filesize_variation3.tmp"; 20 $file_handle = fopen($filename, "w"); 28 for($size = filesize($filename); $size>=-1200; $size-=1200) { 29 $file_handle = fopen($filename, "r+"); 32 var_dump( filesize($filename) );
|
H A D | symlink_link_linkinfo_is_link_variation4.phpt | 14 Prototype: bool is_link ( string $filename ); 33 $filename = "$file_path/symlink__link_linkinfo_is_link_variation4.tmp"; 35 $file = fopen($filename, "w"); 43 var_dump( link($filename, $linkname) ); 48 if( filesize($filename) == filesize($linkname) ) 60 $data_from_file = file_get_contents($filename); 64 if( filesize($filename) == filesize($linkname) ) 71 $file = fopen($filename, "w"); 80 var_dump( filesize($filename) ); 82 if( filesize($filename) == filesize($linkname) ) [all …]
|
/PHP-5.5/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.5/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.5/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.5/ext/gd/tests/ |
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);
|
/PHP-5.5/ext/pdo_pgsql/tests/ |
H A D | copy_to.phpt | 50 $filename="test_pgsqlCopyToFile.csv"; 51 var_dump($db->pgsqlCopyToFile('test',$filename)); 52 echo file_get_contents($filename); 54 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL")); 55 echo file_get_contents($filename); 57 var_dump($db->pgsqlCopyToFile('test',$filename,";","NULL",'a,c')); 58 echo file_get_contents($filename); 61 var_dump($db->pgsqlCopyToFile('test_error',$filename)); 69 if(isset($filename)) { 70 @unlink($filename);
|
/PHP-5.5/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_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_example.txt'; 42 unlink( $filename );
|
/PHP-5.5/ext/standard/tests/strings/ |
H A D | bug65947.phpt | 7 $filename = 'test.toto'; 11 $b2 = basename($filename); 12 if ($filename != $b2)
|