/PHP-5.4/ext/standard/tests/file/ |
H A D | readfile_variation2.phpt | 12 Description: Outputs a file 15 /* Variation 2 : Create file 18 Delete file and its link 21 // include file.inc 22 require("file.inc"); 26 // temp file used here 29 // create temp file and insert data into it
|
H A D | fileowner_variation3.phpt | 8 * Description: Returns the user ID of the owner of the file, or 12 /* Passing file names with different notations, using slashes, wild-card chars */ 16 echo "*** Testing fileowner() with different notations of file names ***\n"; 25 /* Testing a file trailing slash */ 28 /* Testing file with double slashes */ 41 foreach($files_arr as $file) { 43 var_dump( fileowner( $file_path."/".$file ) ); 58 *** Testing fileowner() with different notations of file names ***
|
H A D | is_readable_variation1.phpt | 2 Test is_readable() function: usage variations - diff. file notations 23 /* test is_readable() with file having different filepath notation */ 25 require dirname(__FILE__).'/file.inc'; 31 // create a new temporary file 40 /* Testing a file trailing slash */ 43 /* Testing file with double slashes */ 60 is a writable file */ 61 foreach($files_arr as $file) { 63 var_dump( is_readable($file) );
|
H A D | chmod_variation3.phpt | 6 * Description: Change file mode 110 Error: 2 - chmod(): No such file or directory, %s(%d) 114 Error: 2 - chmod(): No such file or directory, %s(%d) 118 Error: 2 - chmod(): No such file or directory, %s(%d) 122 Error: 2 - chmod(): No such file or directory, %s(%d) 126 Error: 2 - chmod(): No such file or directory, %s(%d) 130 Error: 2 - chmod(): No such file or directory, %s(%d) 134 Error: 2 - chmod(): No such file or directory, %s(%d) 138 Error: 2 - chmod(): No such file or directory, %s(%d) 142 Error: 2 - chmod(): No such file or directory, %s(%d) [all …]
|
H A D | lstat_stat_basic.phpt | 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 20 require("$file_path/file.inc"); 24 /* creating temp directory and file */ 35 // creating file 39 // stat of the file created 43 // now new stat of the dir after file is created 53 // new stat of the file, after a softlink to this file is created 65 // New stat values taken after creation of file & link 97 -- comparing difference in dir stats before and after creating file in it -- [all …]
|
H A D | fscanf_variation25.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 char formats 56 // rewind the file so that for every foreach iteration the file pointer starts from bof
|
H A D | is_dir_variation2.phpt | 16 and with file, soft & hard link to file */ 37 echo "\n*** Testing is_dir() with file and links to a file ***\n"; 38 echo "-- With file --\n"; 88 *** Testing is_dir() with file and links to a file *** 89 -- With file --
|
H A D | copy_error.phpt | 6 * Description: Makes a copy of the file source to dest. 12 var_dump( copy("/no/file", "file") ); 27 Warning: copy(/no/file): failed to open stream: No such file or directory in %s on line %d
|
H A D | filegroup_error.phpt | 6 * Description: Returns the group ID of the file, or FALSE in case of an error. 11 /* Non-existing file or dir */ 12 var_dump( filegroup("/no/such/file/dir") ); 20 var_dump( filegroup("/no/such/file", "root") ); // args > expected 28 Warning: filegroup(): stat failed for /no/such/file/dir in %s on line %d
|
H A D | fopen_variation13.phpt | 2 Test fopen() function : variation: use include path create a file (absolute) 8 * Description: Open a file or a URL and return a file pointer 9 * Source code: ext/standard/file.c 34 fwrite($h, "This is the test file");
|
H A D | bug46347.phpt | 11 $file = __DIR__ . '/parse.ini'; 12 file_put_contents($file, $str); 14 var_dump(parse_ini_file($file));
|
/PHP-5.4/ext/standard/tests/url/ |
H A D | parse_url_basic_001.phpt | 572 --> zlib:/path/to/my/file/file.txt: array(2) { 576 string(25) "/path/to/my/file/file.txt" 624 --> file:///path/to/file: array(2) { 626 string(4) "file" 631 --> file://path/to/file: array(3) { 633 string(4) "file" 640 --> file:/path/to/file: array(2) { 642 string(4) "file" 784 string(4) "file" 791 string(4) "file" [all …]
|
/PHP-5.4/tests/basic/ |
H A D | bug55500.phpt | 11 Content-Disposition: form-data; name="file[]"; filename="file1.txt" 16 Content-Disposition: form-data; name="file[[type]"; filename="file2.txt" 21 Content-Disposition: form-data; name="file[[name]"; filename="file3.txt" 26 Content-Disposition: form-data; name="file[name]["; filename="file4.txt" 38 [%u|b%"file"]=>
|
/PHP-5.4/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation4.phpt | 2 stream_get_meta_data() with a relative file path 6 echo "Create a file:\n"; 14 echo "\nChange to file's directory and open with a relative path:\n"; 29 Create a file: 51 Change to file's directory and open with a relative path:
|
/PHP-5.4/ext/spl/tests/ |
H A D | bug36258.phpt | 8 foreach ($diriter as $key => $file) { 9 var_dump($file->getFilename()); 10 var_dump($file->getPath());
|
/PHP-5.4/main/streams/ |
H A D | plain_wrapper.c | 112 FILE *file; member 160 self->file = NULL; in _php_stream_fopen_from_fd_int() 176 self->file = file; in _php_stream_fopen_from_file_int() 308 self->file = file; in _php_stream_fopen_from_pipe() 400 if (data->file) { in php_stdiop_close() 412 data->file = NULL; in php_stdiop_close() 428 data->file = NULL; in php_stdiop_close() 448 if (data->file) { in php_stdiop_flush() 529 if (data->file) { in php_stdiop_cast() 530 fflush(data->file); in php_stdiop_cast() [all …]
|
/PHP-5.4/scripts/dev/ |
H A D | find_tested.php | 181 while(($file = $thisdir->read()) !== false) { 182 if ($file != '.' && $file != '..') { 183 $path = $thisdir->path.$file; 187 if (preg_match("/\w+\.phpt$/", $file)) { 196 function extract_tests($file) { argument 197 $code = file_get_contents($file);
|
/PHP-5.4/ext/spl/examples/ |
H A D | dbaarray.inc | 3 /** @file dbaarray.inc 23 * Open database $file with $handler in read only mode. 25 * @param file Database file to open. 28 function __construct($file, $handler) 30 $this->db = dba_popen($file, "c", $handler);
|
/PHP-5.4/ext/zlib/tests/ |
H A D | gzfile_variation4.phpt | 29 Warning: gzfile(10.5): failed to open stream: No such file or directory in %s on line %d 32 Warning: gzfile(-10.5): failed to open stream: No such file or directory in %s on line %d 35 Warning: gzfile(123456789000): failed to open stream: No such file or directory in %s on line %d 38 Warning: gzfile(-123456789000): failed to open stream: No such file or directory in %s on line %d 41 Warning: gzfile(0.5): failed to open stream: No such file or directory in %s on line %d
|
H A D | readgzfile_variation4.phpt | 29 Warning: readgzfile(10.5): failed to open stream: No such file or directory in %s on line %d 32 Warning: readgzfile(-10.5): failed to open stream: No such file or directory in %s on line %d 35 Warning: readgzfile(123456789000): failed to open stream: No such file or directory in %s on line %d 38 Warning: readgzfile(-123456789000): failed to open stream: No such file or directory in %s on line … 41 Warning: readgzfile(0.5): failed to open stream: No such file or directory in %s on line %d
|
/PHP-5.4/ext/standard/tests/dir/ |
H A D | dir_variation5-win32.phpt | 2 Test dir() function : usage variations - open a file instead of directory 18 * Passing a file as argument to dir() function instead of a directory 22 echo "*** Testing dir() : open a file instead of a directory ***\n"; 24 // open the file instead of directory 31 *** Testing dir() : open a file instead of a directory ***
|
/PHP-5.4/ext/standard/tests/filters/ |
H A D | stream_filter_remove_basic.phpt | 18 $file = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; 19 touch( $file ); 21 $fp = fopen( $file, 'w+' ); 38 $file = dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'streamfilterTest.txt'; 39 unlink( $file );
|
/PHP-5.4/ext/gd/tests/ |
H A D | jpeg2wbmp_error3.phpt | 22 $file = dirname(__FILE__) .'/simpletext.jpg'; 25 imagejpeg($im, $file); 30 jpeg2wbmp($file, '', 20, 120, 8); 31 jpeg2wbmp($file, null, 20, 120, 8); 32 jpeg2wbmp($file, false, 20, 120, 8);
|
H A D | png2wbmp_error3.phpt | 22 $file = dirname(__FILE__) .'/simpletext.png'; 25 imagepng($im, $file); 30 png2wbmp($file, '', 20, 120, 8); 31 png2wbmp($file, null, 20, 120, 8); 32 png2wbmp($file, false, 20, 120, 8);
|
/PHP-5.4/ext/curl/tests/ |
H A D | curl_write_stdout.phpt | 7 …tes the value 'test' to a temporary file. Use curl to access this file and store the output in ano… 21 curl_setopt($ch, CURLOPT_URL, 'file://' . $log_file);
|