/PHP-5.4/ext/spl/examples/ |
H A D | findfile.php | 32 foreach(new FindFile($argv[1], $argv[2]) as $file) echo $file->getPathname()."\n";
|
H A D | findregex.php | 31 foreach(new RegexFindFile($argv[1], $argv[2]) as $file) 33 echo $file->getPathname()."\n";
|
H A D | tree.php | 35 foreach(new DirectoryGraphIterator($argv[1]) as $file) 37 echo $file . "\n";
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | bug65701.phpt | 22 foreach (scandir($file_path) as $file) { 23 if (strpos($file, "bug65701") !== false) { 24 unlink($file_path . $file);
|
H A D | lstat_stat_variation12.phpt | 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 22 require "$file_path/file.inc"; 25 /* create temp file, link */ 27 $fp = fopen($filename, "w"); // temp file
|
H A D | lstat_stat_variation3.phpt | 12 Description: Gives information about a file or symbolic link 15 Description: Gives information about a file 21 require "$file_path/file.inc"; 23 /* create temp file & link */ 24 $fp = fopen("$file_path/lstat_stat_variation3.tmp", "w"); // temp file
|
H A D | glob_basic.phpt | 24 $fp = fopen("$dirname/file.text", "w"); 47 unlink("$file_path/glob_basic/file.text"); 54 string(%d) "%s/glob_basic/file.text" 70 string(%d) "%s/glob_basic/file.text" 78 string(%d) "%s/glob_basic/file.text"
|
H A D | parse_ini_file_error.phpt | 6 * Description: Parse configuration file 24 echo "\n-- Testing parse_ini_file() function with a non-existent file --\n"; 40 Warning: parse_ini_file(%s): failed to open stream: No such file or directory in %s on line %d 43 -- Testing parse_ini_file() function with a non-existent file -- 45 Warning: parse_ini_file(%s): failed to open stream: No such file or directory in %s on line %d
|
H A D | readfile_variation3.phpt | 6 Description: Outputs a file 10 // include file.inc 11 require("file.inc"); 19 // temp file name used here 21 // create file
|
H A D | disk.phpt | 35 Warning: disk_free_space(): No such file or directory in %s on line %d 38 Warning: disk_total_space(): No such file or directory in %s on line %d 43 Warning: disk_free_space(): No such file or directory in %s on line %d 46 Warning: disk_total_space(): No such file or directory in %s on line %d
|
H A D | readfile_variation9.phpt | 8 * Description: Output a file or a URL 9 * Source code: ext/standard/file.c 24 // create the file 81 …b//..//../readfileVar8Sub/fileToRead.tmp): failed to open stream: No such file or directory in %s … 85 Warning: readfile(%sreadfileVar8Sub/BADDIR/fileToRead.tmp): failed to open stream: No such file or … 97 Warning: readfile(BADDIR/fileToRead.tmp): failed to open stream: No such file or directory in %s on…
|
H A D | rename_variation8-win32.phpt | 10 Description: Renames a file or directory 13 echo "\n*** Testing rename() on non-existing file ***\n"; 16 // try renaming a non existing file 51 *** Testing rename() on non-existing file *** 53 …istent_file.tmp,%s/rename_variation8_new.tmp): The system cannot find the file specified. (code: 2… 65 Warning: rename(%s/non_existent_dir,%s/rename_basic_dir2): The system cannot find the file specifie…
|
H A D | rename_variation8.phpt | 10 Description: Renames a file or directory 13 echo "\n*** Testing rename() on non-existing file ***\n"; 16 // try renaming a non existing file 52 *** Testing rename() on non-existing file *** 54 Warning: rename(%s/non_existent_file.tmp,%s/rename_variation8_new.tmp): No such file or directory i… 66 Warning: rename(%s/non_existent_dir,%s/rename_basic_dir2): No such file or directory in %s on line …
|
H A D | is_executable_variation2.phpt | 2 Test is_executable() function: usage variations - file/dir with diff. perms 25 /* test is_executable() with file/dir having different permissions */ 27 require dirname(__FILE__).'/file.inc'; 65 is an executable file */ 66 foreach($files as $file) { 68 var_dump( is_executable($file) ); 73 // change all file's permissions to 777 before deleting
|
H A D | is_readable_variation2.phpt | 2 Test is_readable() function: usage variations - file/dir with diff. perms 24 /* test is_executable() with file/dir having different permissions */ 26 require dirname(__FILE__).'/file.inc'; 64 is a readable file */ 65 foreach($files as $file) { 67 var_dump( is_readable($file) ); 72 // change all file's permissions to 777 before deleting
|
/PHP-5.4/ext/ftp/tests/ |
H A D | ftp_fget_basic.phpt | 2 FTP ftp_fget file for both binary and ASCII transfer modes 30 //test non-existent file request 33 //remove file 43 Warning: ftp_fget(): a warning: No such file or directory in %sftp_fget_basic.php on line %d
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | vfprintf_error4.phpt | 16 $file = 'vfprintf_test.txt'; 17 $fp = fopen( $file, "a+" ); 31 $file = 'vfprintf_test.txt'; 32 unlink( $file );
|
/PHP-5.4/ext/zlib/tests/ |
H A D | gzfile_variation7.phpt | 33 Warning: gzfile(string): failed to open stream: No such file or directory in %s on line %d 36 Warning: gzfile(string): failed to open stream: No such file or directory in %s on line %d 39 Warning: gzfile(sTrInG): failed to open stream: No such file or directory in %s on line %d 42 Warning: gzfile(hello world): failed to open stream: No such file or directory in %s on line %d
|
H A D | readgzfile_variation7.phpt | 32 Warning: readgzfile(string): failed to open stream: No such file or directory in %s on line %d 35 Warning: readgzfile(string): failed to open stream: No such file or directory in %s on line %d 38 Warning: readgzfile(sTrInG): failed to open stream: No such file or directory in %s on line %d 41 Warning: readgzfile(hello world): failed to open stream: No such file or directory in %s on line %d
|
/PHP-5.4/ext/gd/tests/ |
H A D | jpeg2wbmp_error1.phpt | 22 $file = dirname(__FILE__) .'/simpletext.jpg'; 26 imagejpeg($im, $file); 31 jpeg2wbmp($file, $file2, 20, 120, 9); 32 jpeg2wbmp($file, $file2, 20, 120, -1);
|
H A D | png2wbmp_error1.phpt | 22 $file = dirname(__FILE__) .'/simpletext.png'; 26 imagepng($im, $file); 31 png2wbmp($file, $file2, 20, 120, 9); 32 png2wbmp($file, $file2, 20, 120, -1);
|
/PHP-5.4/ext/standard/tests/image/ |
H A D | getimagesize_variation1.phpt | 87 Error: 2 - getimagesize(0): failed to open stream: No such file or directory, %s(%d) 91 Error: 2 - getimagesize(1): failed to open stream: No such file or directory, %s(%d) 95 Error: 2 - getimagesize(12345): failed to open stream: No such file or directory, %s(%d) 99 Error: 2 - getimagesize(-2345): failed to open stream: No such file or directory, %s(%d) 103 Error: 2 - getimagesize(10.5): failed to open stream: No such file or directory, %s(%d) 107 Error: 2 - getimagesize(-10.5): failed to open stream: No such file or directory, %s(%d) 111 Error: 2 - getimagesize(101234567000): failed to open stream: No such file or directory, %s(%d) 115 Error: 2 - getimagesize(0.000107654321): failed to open stream: No such file or directory, %s(%d) 119 Error: 2 - getimagesize(0.5): failed to open stream: No such file or directory, %s(%d) 151 Error: 2 - getimagesize(1): failed to open stream: No such file or directory, %s(%d) [all …]
|
/PHP-5.4/ext/exif/ |
H A D | test.txt | 19 //$file = '/t/temp/kodak-dc4800.tif'; 20 //$file = '/t/temp/canon-ixus.jpg'; 21 //$file = '/t/temp/test2.jpg'; 22 if ( $file) { 23 $image = exif_thumbnail($file); 71 case 'file': 109 // function: search_file($file,$ext) 135 // function: search_file($file,$ext) 261 $type = $file['type']; 262 $file = $file['file']; [all …]
|
/PHP-5.4/ext/phar/tests/ |
H A D | 008.phpt | 7 $file = "<?php 10 $file .= pack('V', 500) . 'notenough'; 11 file_put_contents(dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php', $file);
|
/PHP-5.4/Zend/tests/ |
H A D | closure_032.phpt | 21 [file] => %s 37 [file] => %s 49 [file] => %s
|