/PHP-5.5/ext/standard/tests/file/ |
H A D | fscanf_variation4.phpt | 8 Description: Parses input from a file according to a format 17 // create a file 21 exit("Error:failed to open file $filename"); 39 // writing to the file 44 // closing the file 47 // opening the file for reading 50 exit("Error:failed to open file $filename"); 54 // reading the values from file using different integer formats 56 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | symlink_link_linkinfo_is_link_variation8.phpt | 15 Description: Tells whether the given file is a symbolic link. 26 /* creating link to a file in different dir with the same name as the file */ 28 // temp file used 35 // create temp file 39 var_dump( link($filename, $dirname."/") ); // this fails indicating file exists 44 // delete temp file 55 // create temp file 59 var_dump( symlink($filename, $dirname."/") ); // this fails indicating file exists 64 // delete temp file
|
H A D | fgetcsv_variation12.phpt | 45 echo "Error: failed to create file $filename!\n"; 60 // else rewind the file pointer to beginning of the file 65 // rewind the file pointer to bof 78 // check the file pointer position and if eof 82 // close the file 84 //delete file 94 -- Testing fgetcsv() with file opened using r mode -- 106 -- Testing fgetcsv() with file opened using rb mode -- 118 -- Testing fgetcsv() with file opened using rt mode -- 130 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | rename_variation-win32.phpt | 12 Description: Renames a file or directory 15 require dirname(__FILE__).'/file.inc'; 26 /* Testing a file trailing slash */ 29 /* Testing file with double slashes */ 36 /* loop through each $file and rename it to rename_variation2.tmp */ 44 // ensure that file got renamed to new name 49 // unlink the file 77 Warning: unlink(%s/rename_variation2.tmp): No such file or directory in %s on line %d
|
H A D | file_get_contents_error.phpt | 9 * Description: Reads entire file into a string 15 include($file_path."/file.inc"); 17 echo "\n-- Testing with Non-existing file --\n"; 18 print( file_get_contents("/no/such/file/or/dir") ); 25 create_files($file_path, 1, "text", 0755, 100, "w", "file", 1, "byte"); 51 -- Testing with Non-existing file -- 53 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
|
H A D | stat_variation1-win32.phpt | 14 * Description: Gives information about a file 17 /* test the effects of rename() on stats of dir/file */ 20 require "$file_path/file.inc"; 23 /* create temp file and directory */ 26 $file_handle = fopen("$file_path/stat_variation1.tmp", "w"); // temp file 30 echo "*** Testing stat(): on file and directory ater renaming them ***\n"; 32 // renaming a file 81 *** Testing stat(): on file and directory ater renaming them ***
|
H A D | rename_variation4.phpt | 14 require dirname(__FILE__).'/file.inc'; 16 /* Renaming a file, link and directory to numeric name */ 17 echo "\n*** Testing rename() by renaming a file, link and directory to numeric name ***\n"; 20 // renaming existing file to numeric name 25 // remove the file 44 *** Testing rename() by renaming a file, link and directory to numeric name ***
|
H A D | fflush_basic.phpt | 6 Description: Flushes the output to a file 9 echo "*** Testing fflush(): writing to a file and reading the contents ***\n"; 19 // opening a file 22 exit("Error:failed to open file $filename"); 28 // writing data to the file 48 *** Testing fflush(): writing to a file and reading the contents ***
|
H A D | file_get_contents_variation8.phpt | 14 * Description: Read the entire file into a string 15 * Source code: ext/standard/file.c 33 "/no/such/file/dir", 49 Warning: file_get_contents(-1): failed to open stream: No such file or directory in %s on line %d 53 Warning: file_get_contents(1): failed to open stream: No such file or directory in %s on line %d 69 Warning: file_get_contents( ): failed to open stream: No such file or directory in %s on line %d 81 Warning: file_get_contents(/no/such/file/dir): failed to open stream: No such file or directory in … 85 Warning: file_get_contents(php/php): failed to open stream: No such file or directory in %s on line…
|
H A D | file_get_contents_file_put_contents_error.phpt | 2 Test file-get_contents() and file_put_contents() functions : error conditions 7 * Description: Reads entire file into a string 11 * Description: Write a string to a file 18 echo "\n-- Testing with Non-existing file --\n"; 19 print( file_get_contents("/no/such/file/or/dir") ); 32 file_put_contents($file_path."/file_put_contents1.tmp", "Garbage data in the file"); 49 -- Testing with Non-existing file -- 51 Warning: file_get_contents(/no/such/file/or/dir): failed to open stream: No such file or directory …
|
H A D | stat_basic-win32.phpt | 13 Description: Gives information about a file 17 require("$file_path/file.inc"); 21 /* creating temp directory and file */ 31 // creating file 35 // stat of the file created 39 // now new stat of the dir after file is created 50 // New stat values taken after creation of file 54 // creating file, also dump the value of stats 56 echo "-- comparing difference in dir stats before and after creating file in it --\n"; 77 *** Testing stat(): comparing stats (recorded before and after file creation) *** [all …]
|
H A D | readfile_variation1.phpt | 6 Description: Outputs a file 11 // include file.inc 12 require("file.inc"); 20 // temp file name used here 23 // create file
|
/PHP-5.5/ext/zip/lib/ |
H A D | zip_free.c | 72 if (za->file[i]->error.zip_err == ZIP_ER_OK) { in _zip_free() 73 _zip_error_set(&za->file[i]->error, ZIP_ER_ZIPCLOSED, 0); in _zip_free() 74 za->file[i]->za = NULL; in _zip_free() 78 free(za->file); in _zip_free()
|
/PHP-5.5/ext/zip/tests/ |
H A D | oo_addemptydir.phpt | 13 $file = $dirname . '__tmp_oo_addfile.zip'; 15 copy($dirname . 'test.zip', $file); 18 if (!$zip->open($file)) { 29 @unlink($file);
|
/PHP-5.5/ext/gd/tests/ |
H A D | imagewbmp.phpt | 9 $file = dirname(__FILE__) . '/im.wbmp'; 14 imagewbmp($im, $file); 16 $im2 = imagecreatefromwbmp($file); 27 unlink($file);
|
/PHP-5.5/ext/standard/tests/general_functions/ |
H A D | is_resource_basic.phpt | 50 echo "\nResource type..var_dump after file open returns\n"; 52 echo "Resource type..after file open is_resource() returns"; 60 echo "\nResource type..var_dump after file close returns\n"; 62 echo "Resource type..after file close is_resource() returns"; 85 Resource type..var_dump after file open returns 87 Resource type..after file open is_resource() returns TRUE 89 Resource type..var_dump after file close returns 91 Resource type..after file close is_resource() returns FALSE
|
/PHP-5.5/ext/curl/tests/ |
H A D | bug27023.phpt | 16 curl_setopt($ch, CURLOPT_URL, "{$host}/get.php?test=file"); 19 $params = array('file' => '@' . __DIR__ . '/curl_testdata1.txt'); 23 $params = array('file' => '@' . __DIR__ . '/curl_testdata1.txt;type=text/plain'); 27 $params = array('file' => '@' . __DIR__ . '/curl_testdata1.txt;filename=foo.txt'); 31 $params = array('file' => '@' . __DIR__ . '/curl_testdata1.txt;type=text/plain;filename=foo.txt'); 35 $params = array('file' => '@' . __DIR__ . '/curl_testdata1.txt;filename=foo.txt;type=text/plain');
|
H A D | bug48207.phpt | 2 Test curl_setopt() CURLOPT_FILE readonly file handle 11 * Description : Adds a file which stores the received data from curl_exec(); 26 // Create a temporary file for the test 28 $url = 'file://'. $tempname; 30 // add the test data to the file 46 Warning: curl_setopt(): the provided file handle is not writable in %s on line %d
|
/PHP-5.5/ext/mbstring/oniguruma/ |
H A D | config.h.in | 18 /* Define to 1 if you have the <dlfcn.h> header file. */ 21 /* Define to 1 if you have the <inttypes.h> header file. */ 24 /* Define to 1 if you have the <memory.h> header file. */ 33 /* Define to 1 if you have the <stdint.h> header file. */ 36 /* Define to 1 if you have the <stdlib.h> header file. */ 39 /* Define to 1 if you have the <strings.h> header file. */ 42 /* Define to 1 if you have the <string.h> header file. */ 45 /* Define to 1 if you have the <sys/stat.h> header file. */ 48 /* Define to 1 if you have the <sys/times.h> header file. */ 51 /* Define to 1 if you have the <sys/time.h> header file. */ [all …]
|
/PHP-5.5/ext/standard/tests/url/ |
H A D | parse_url_basic_008.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL 77 --> zlib:/path/to/my/file/file.txt : NULL 83 --> file:///path/to/file : NULL 84 --> file://path/to/file : NULL 85 --> file:/path/to/file : NULL 102 --> file:///: : NULL 103 --> file:///a:/ : NULL 104 --> file:///ab:/ : NULL 105 --> file:///a:/ : NULL 106 --> file:///@:/ : NULL [all …]
|
H A D | parse_url_basic_009.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL 77 --> zlib:/path/to/my/file/file.txt : NULL 83 --> file:///path/to/file : NULL 84 --> file://path/to/file : NULL 85 --> file:/path/to/file : NULL 102 --> file:///: : NULL 103 --> file:///a:/ : NULL 104 --> file:///ab:/ : NULL 105 --> file:///a:/ : NULL 106 --> file:///@:/ : NULL [all …]
|
H A D | parse_url_basic_005.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL 77 --> zlib:/path/to/my/file/file.txt : NULL 83 --> file:///path/to/file : NULL 84 --> file://path/to/file : NULL 85 --> file:/path/to/file : NULL 102 --> file:///: : NULL 103 --> file:///a:/ : NULL 104 --> file:///ab:/ : NULL 105 --> file:///a:/ : NULL 106 --> file:///@:/ : NULL [all …]
|
H A D | parse_url_basic_006.phpt | 53 --> http://www.php.net:80/this/is/a/very/deep/directory/../file.php : NULL 77 --> zlib:/path/to/my/file/file.txt : NULL 83 --> file:///path/to/file : NULL 84 --> file://path/to/file : NULL 85 --> file:/path/to/file : NULL 102 --> file:///: : NULL 103 --> file:///a:/ : NULL 104 --> file:///ab:/ : NULL 105 --> file:///a:/ : NULL 106 --> file:///@:/ : NULL [all …]
|
/PHP-5.5/ext/phar/tests/cache_list/files/ |
H A D | phar_test.inc | 56 $file = (binary)$file; 57 $file .= pack('V', strlen($manifest)) . $manifest; 61 $file .= (binary)$cont; 64 file_put_contents($fname, $file); 68 fwrite($fp, $file); 74 fwrite($fp, $file);
|
/PHP-5.5/ext/phar/tests/files/ |
H A D | phar_test.inc | 56 $file = (binary)$file; 57 $file .= pack('V', strlen($manifest)) . $manifest; 61 $file .= (binary)$cont; 64 file_put_contents($fname, $file); 68 fwrite($fp, $file); 74 fwrite($fp, $file);
|