/PHP-5.4/ext/standard/tests/file/ |
H A D | is_file_variation4.phpt | 6 Description: Tells whether the filename is a regular file 7 Returns TRUE if the filename exists and is a regular file 10 /* Passing file names with different notations, using slashes, wild-card chars */ 14 echo "*** Testing is_file() with different notations of file names ***\n"; 23 /* Testing a file trailing slash */ 26 /* Testing file with double slashes */ 39 foreach($files_arr as $file) { 41 var_dump( is_file( $file_path."/".$file ) ); 56 *** Testing is_file() with different notations of file names ***
|
H A D | fgets_variation2.phpt | 7 Description: Gets a line from file pointer 11 - closed file handle 12 - unset file handle 16 include ("file.inc"); 21 // open the file for reading 23 // close the file 26 // read from closed file 31 // open the file for reading 33 // unset the file handle
|
H A D | lstat_stat_variation9.phpt | 2 Test lstat() and stat() functions: usage variations - deleting file/subdir 12 Description: Gives information about a file or symbolic link 15 Description: Gives information about a file 19 require "$file_path/file.inc"; 21 /* test the effects on stats by deleting file/subdir from a dir 24 echo "*** Testing stat() for comparing stats after the deletion of subdir and file ***\n"; 39 /* now delete the surdir and file and record the stat */ 43 // comparing stats after the deletion of subdir and file 63 *** Testing stat() for comparing stats after the deletion of subdir and file ***
|
H A D | fputcsv_variation9.phpt | 64 //close the file 70 //delete file 80 -- file opened in r+ -- 91 -- file opened in r+b -- 102 -- file opened in r+t -- 113 -- file opened in a+ -- 124 -- file opened in a+b -- 146 -- file opened in w+ -- 179 -- file opened in x+ -- 212 -- file opened in r+ -- [all …]
|
H A D | is_file_variation1.phpt | 6 Description: Tells whether the filename is a regular file 7 Returns TRUE if the filename exists and is a regular file 10 /* Testing is_file() with file containing data, truncating its size 11 and the file created by touch() */ 15 echo "-- Testing is_file() with file containing data --\n"; 31 echo "\n-- Testing is_file() with an empty file --\n"; 47 -- Testing is_file() with file containing data -- 53 -- Testing is_file() with an empty file --
|
H A D | lstat_stat_variation8.phpt | 2 Test lstat() and stat() functions: usage variations - creating file/subdir 13 Description: Gives information about a file or symbolic link 16 Description: Gives information about a file 20 require "$file_path/file.inc"; 22 /* test the effects on stats with creating file/subdir in a dir 25 /* create temp file */ 29 echo "*** Testing stat() on dir after subdir and file is created in it ***\n"; 57 *** Testing stat() on dir after subdir and file is created in it ***
|
H A D | symlink_link_linkinfo_is_link_variation2.phpt | 2 …nk(), linkinfo(), link() and is_link() functions : usage variations - hardlink to non-existent file 15 Description: Tells whether the given file is a symbolic link. 24 /* Variation 2 : Create hard link to non-existent file */ 32 echo "*** Creating a hard link to a non-existent file ***\n"; 33 // creating hard link to non_existent file 43 *** Creating a hard link to a non-existent file *** 45 Warning: link(): No such file or directory in %s on line %d 48 Warning: linkinfo(): No such file or directory in %s on line %d
|
H A D | glob_variation2.phpt | 17 // create temp file 18 $fp = fopen("$file_path/$dir_name/file.text", "w"); 36 unlink("$file_path/glob_test/file.text"); 43 string(11) "./file.text" 47 string(22) "../glob_test/file.text" 51 string(19) "glob_test/file.text"
|
H A D | file_get_contents_file_put_contents_basic.phpt | 8 * Description: Reads entire file into a string 12 * Description: Write a string to a file 16 include($file_path."/file.inc"); 20 echo "-- Testing with simple valid data file --\n"; 28 echo "\n-- Testing with empty file --\n"; 44 -- Testing with simple valid data file -- 47 -- Testing with empty file --
|
H A D | file_variation6.phpt | 2 file() with a range of integer flag values 12 var_dump(file($filepath, $flags)); 236 Warning: file(): '24' flag is not supported in %s on line %d 239 Warning: file(): '25' flag is not supported in %s on line %d 242 Warning: file(): '26' flag is not supported in %s on line %d 245 Warning: file(): '27' flag is not supported in %s on line %d 248 Warning: file(): '28' flag is not supported in %s on line %d 251 Warning: file(): '29' flag is not supported in %s on line %d 254 Warning: file(): '30' flag is not supported in %s on line %d 257 Warning: file(): '31' flag is not supported in %s on line %d [all …]
|
H A D | filesize_variation3-win32.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, (binary)str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 45 -- Testing filesize() after truncating the file to a new length --
|
H A D | filesize_variation3.phpt | 2 Test filesize() function: usage variations - file size after truncate 12 Description : Returns the size of the file in bytes, or FALSE 21 fwrite($file_handle, str_repeat("Hello,World ", 1000) ); // create file of size 12000 bytes 24 echo "-- Testing filesize() after truncating the file to a new length --\n"; 25 // truncate the file created earlier in subdir, the size of the file is 12000bytes 26 // truncate the same file, in the loop , each time with the decrement in size by 1200 bytes, 45 -- Testing filesize() after truncating the file to a new length --
|
/PHP-5.4/ext/spl/tests/ |
H A D | SplFileObject_fputcsv_variation14.phpt | 6 /* Testing fputcsv() to write to a file when default enclosure value and delimiter 7 of two chars is provided and file is opened in read only mode */ 9 echo "*** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode … 21 $file = __DIR__ . '/SplFileObject_fputcsv.csv'; 22 unlink($file); 25 *** Testing fputcsv() : with enclosure & delimiter of two chars and file opened in read mode ***
|
/PHP-5.4/ext/zip/tests/ |
H A D | bug64342_1.phpt | 2 Bug #64342 ZipArchive::addFile() has to check file existence (variation 2) 13 $file = $dirname . '__tmp_oo_addfile.zip'; 15 copy($dirname . 'test.zip', $file); 18 if (!$zip->open($file)) { 30 @unlink($file);
|
H A D | oo_delete.phpt | 11 $file = $dirname . '__tmp_oo_delete.zip'; 12 if (file_exists($file)) { 13 unlink($file); 17 if (!$zip->open($file, ZIPARCHIVE::CREATE)) { 32 if (!$zip->open($file, ZIPARCHIVE::CREATE)) { 69 if (file_exists($file)) { 70 unlink($file);
|
H A D | oo_extract.phpt | 11 $file = $dirname . 'test_with_comment.zip'; 14 if ($zip->open($file) !== TRUE) { 35 echo "failed. bar file\n"; 41 echo "failed. foo file\n"; 47 /* extract one file */ 50 echo "failed. extract bar file\n"; 58 echo "failed. extract bar file\n"; 63 echo "failed. extract foo file\n";
|
/PHP-5.4/ext/gd/tests/ |
H A D | bug41442.phpt | 24 /* file */ 25 $file = dirname(__FILE__)."/bug41442.gd2"; 26 imagegd2($res, $file); 27 $str2 = file_get_contents($file); 30 @unlink($file);
|
/PHP-5.4/Zend/tests/ |
H A D | bug50383.phpt | 2 Bug #50383 (Exceptions thrown in __call / __callStatic do not include file and line in trace) 44 [file] => %s 62 [file] => %s 75 [file] => %s 90 [file] => %s 108 [file] => %s 121 [file] => %s
|
/PHP-5.4/sapi/cgi/tests/ |
H A D | apache_request_headers.phpt | 16 $file = dirname(__FILE__)."/012.test.php"; 18 file_put_contents($file, '<?php print_r(apache_request_headers()); ?>'); 20 passthru("$php -n $file"); 25 passthru("$php -n -q $file"); 28 unlink($file);
|
/PHP-5.4/ext/mbstring/libmbfl/ |
H A D | config.h.in | 3 /* Define to 1 if you have the <assert.h> header file. */ 6 /* Define to 1 if you have the <dlfcn.h> header file. */ 9 /* Define to 1 if you have the <inttypes.h> header file. */ 16 /* Define to 1 if you have the <memory.h> header file. */ 23 /* Define to 1 if you have the <stddef.h> header file. */ 26 /* Define to 1 if you have the <stdint.h> header file. */ 29 /* Define to 1 if you have the <stdlib.h> header file. */ 38 /* Define to 1 if you have the <strings.h> header file. */ 41 /* Define to 1 if you have the <string.h> header file. */ 44 /* Define to 1 if you have the <sys/stat.h> header file. */ [all …]
|
/PHP-5.4/ext/standard/tests/streams/ |
H A D | stream_get_meta_data_file_variation2.phpt | 10 echo "Write some data to the file:\n"; 18 //seek to start of file 21 echo "\n\nRead a line of the file, causing data to be buffered:\n"; 26 echo "\n\nRead 20 bytes from the file:\n"; 31 echo "\n\nRead entire file:\n"; 44 Write some data to the file: 67 Read a line of the file, causing data to be buffered: 92 Read 20 bytes from the file: 115 Read entire file:
|
/PHP-5.4/ext/xsl/tests/ |
H A D | bug54446_with_ini.phpt | 2 Bug #54446 (Arbitrary file creation via libxslt 'output' extension with php.ini setting) 43 print "OK, no file created\n"; 54 print "OK, file exists\n"; 70 print "OK, no file created\n"; 81 print "OK, no file created\n"; 90 print "OK, file exists\n"; 106 OK, no file created 109 OK, file exists 118 OK, no file created 131 OK, no file created [all …]
|
H A D | bug54446.phpt | 2 Bug #54446 (Arbitrary file creation via libxslt 'output' extension) 43 print "OK, no file created\n"; 54 print "OK, file exists\n"; 70 print "OK, no file created\n"; 75 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li… 79 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li… 82 OK, no file created 83 OK, file exists 85 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %s element output in %s on li… 89 Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element output in %s on li… [all …]
|
/PHP-5.4/ext/standard/tests/filters/ |
H A D | bug35916.phpt | 5 $file = dirname(__FILE__) . "/bug35916.txt"; 6 @unlink($file); 31 $fp=fopen($file, "w"); 36 readfile($file); 37 unlink($file);
|
/PHP-5.4/ext/fileinfo/tests/ |
H A D | finfo_file_regex.phpt | 9 * Works with the unix file command: 10 * $ file -m magic resources/test.awk 19 $file = __DIR__ . '/resources/test.awk'; 20 var_dump( finfo_file( $finfo, $file ) ); 21 var_dump( finfo_file( $finfo, $file, FILEINFO_CONTINUE ) );
|