/PHP-7.4/ext/standard/tests/file/ |
H A D | 007_variation4.phpt | 9 Description: Opens file or URL. 20 checking for the file truncation when trying to open an existing file in "w+" mode, 24 require($file_path."/file.inc"); 31 $file_handle = fopen($file, "w+"); //opening the file "w+" mode 34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+… 45 fclose( fopen($file, "w+") ); //Opening the existing data file again in "w+" mode 46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+"… 49 unlink($file); //Deleting the file 50 fclose( fopen($file, "w+") ); //Opening the non-existing file in "w+" mode, which will be created [all …]
|
H A D | fputcsv_variation5.phpt | 62 //close the file 68 //delete file 78 -- file opened in r+ -- 85 -- file opened in r+b -- 99 -- file opened in a+ -- 120 -- file opened in w+ -- 141 -- file opened in x+ -- 162 -- file opened in r+ -- 183 -- file opened in a+ -- 204 -- file opened in w+ -- [all …]
|
H A D | fputcsv_variation11.phpt | 62 //close the file 68 //delete file 78 -- file opened in r+ -- 85 -- file opened in r+b -- 99 -- file opened in a+ -- 120 -- file opened in w+ -- 141 -- file opened in x+ -- 162 -- file opened in r+ -- 183 -- file opened in a+ -- 204 -- file opened in w+ -- [all …]
|
H A D | fputcsv_variation12.phpt | 63 //close the file 69 //delete file 79 -- file opened in r+ -- 86 -- file opened in r+b -- 100 -- file opened in a+ -- 121 -- file opened in w+ -- 142 -- file opened in x+ -- 163 -- file opened in r+ -- 184 -- file opened in a+ -- 205 -- file opened in w+ -- [all …]
|
H A D | file_error.phpt | 2 Test file() function : error conditions 7 Description: Reads entire file into an array 8 Returns the file in an array 12 $file_handle = fopen($file_path."/file.tmp", "w"); 13 var_dump( file() ); // Zero No. of args 15 $filename = $file_path."/file.tmp"; 19 var_dump( file($filename, 10, NULL) ); // Incorrect flag 21 var_dump( file("temp.tmp") ); // non existing filename 29 unlink($file_path."/file.tmp"); 33 Warning: file() expects at least 1 parameter, 0 given in %s on line %d [all …]
|
H A D | 007_variation11-win32-mb.phpt | 14 Description: Opens file or URL. 25 checking for the file truncation when trying to open an existing file in "wt" mode, 29 require($file_path."/file.inc"); 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"… 54 unlink($file); //Deleting the file 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created 56 var_dump( file_exists($file) ); //Check for the existence of file [all …]
|
H A D | ftruncate_variation3-win32.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 65 // delete file [all …]
|
H A D | ftruncate_variation3.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 65 // delete file [all …]
|
H A D | ftruncate_variation5-win32.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 77 -- Testing ftruncate() with file opening using r mode -- [all …]
|
H A D | ftruncate_variation5.phpt | 13 Description: Truncates a file to a given length 16 // include common file related test functions 17 include ("file.inc"); 21 /* test ftruncate with file opened in different modes */ 35 // create 1 file with some contents 38 // fopen the file using the $file_modes 43 // fopen the file using the $file_modes 47 echo "Error: failed to open file $filename!\n"; 51 rewind($file_handle); // file pointer to 0 77 -- Testing ftruncate() with file opening using r mode -- [all …]
|
H A D | copy_variation3-win32.phpt | 28 /* array of destination file names */ 35 " ", //blank space as file name 52 echo "Existence of destination file => "; 56 echo "Destination file name => "; 60 echo "Size of source file => "; 64 echo "Size of destination file => "; 86 Existence of destination file => bool(true) 88 Size of source file => int(1500) 89 Size of destination file => int(1500) 95 Size of source file => int(1500) [all …]
|
H A D | 007_variation11-win32.phpt | 14 Description: Opens file or URL. 25 checking for the file truncation when trying to open an existing file in "wt" mode, 29 require($file_path."/file.inc"); 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"… 54 unlink($file); //Deleting the file 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created [all …]
|
H A D | 007_variation11.phpt | 14 Description: Opens file or URL. 25 checking for the file truncation when trying to open an existing file in "wt" mode, 29 require($file_path."/file.inc"); 36 $file_handle = fopen($file, "wt"); //opening the file "wt" mode 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wt… 50 fclose( fopen($file, "wt") ); //Opening the existing data file again in "wt" mode 51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wt"… 54 unlink($file); //Deleting the file 55 fclose( fopen($file, "wt") ); //Opening the non-existing file in "wt" mode, which will be created [all …]
|
H A D | 007_variation12-win32.phpt | 14 Description: Opens file or URL. 25 checking for the file truncation when trying to open an existing file in "w+t" mode, 29 require($file_path."/file.inc"); 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+… 50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t… 54 unlink($file); //Deleting the file 55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created [all …]
|
H A D | 007_variation12.phpt | 14 Description: Opens file or URL. 25 checking for the file truncation when trying to open an existing file in "w+t" mode, 29 require($file_path."/file.inc"); 36 $file_handle = fopen($file, "w+t"); //opening the file "w+t" mode 39 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 48 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+… 50 fclose( fopen($file, "w+t") ); //Opening the existing data file again in "w+t" mode 51 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+t… 54 unlink($file); //Deleting the file 55 fclose( fopen($file, "w+t") ); //Opening the non-existing file in "w+t" mode, which will be created [all …]
|
H A D | 007_variation19.phpt | 9 Description: Opens file or URL. 20 checking for the file truncation when trying to open an existing file in "wb" mode, 24 require($file_path."/file.inc"); 31 $file_handle = fopen($file, "wb"); //opening the file "wb" mode 34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "wb… 45 fclose( fopen($file, "wb") ); //Opening the existing data file again in "wb" mode 46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "wb"… 49 unlink($file); //Deleting the file 50 fclose( fopen($file, "wb") ); //Opening the non-existing file in "wb" mode, which will be created [all …]
|
H A D | 007_variation20.phpt | 9 Description: Opens file or URL. 20 checking for the file truncation when trying to open an existing file in "w+b" mode, 24 require($file_path."/file.inc"); 31 $file_handle = fopen($file, "w+b"); //opening the file "w+b" mode 34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w+… 45 fclose( fopen($file, "w+b") ); //Opening the existing data file again in "w+b" mode 46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w+b… 49 unlink($file); //Deleting the file 50 fclose( fopen($file, "w+b") ); //Opening the non-existing file in "w+b" mode, which will be created [all …]
|
H A D | 007_variation3.phpt | 9 Description: Opens file or URL. 20 checking for the file truncation when trying to open an existing file in "w" mode, 24 require($file_path."/file.inc"); 31 $file_handle = fopen($file, "w"); //opening the file "w" mode 34 var_dump( ftell($file_handle) ); //Initial file pointer position, expected at the beginning of the… 43 var_dump( filesize($file) ); //Check for size of existing data file before opening the file in "w"… 45 fclose( fopen($file, "w") ); //Opening the existing data file again in "w" mode 46 var_dump( filesize($file) ); //Check for size of existing data file after opening the file in "w" … 49 unlink($file); //Deleting the file 50 fclose( fopen($file, "w") ); //Opening the non-existing file in "w" mode, which will be created [all …]
|
H A D | fputcsv_variation10.phpt | 56 //close the file 62 //delete file 72 -- file opened in r+ -- 79 -- file opened in r+b -- 86 -- file opened in r+t -- 93 -- file opened in a+ -- 114 -- file opened in w+ -- 135 -- file opened in x+ -- 156 -- file opened in r+ -- 180 -- file opened in a+ -- [all …]
|
H A D | tempnam_variation4-1.phpt | 13 Description: Create file with unique file name. 16 /* Trying to create the file in a dir with permissions from 0351 to 0777, 55 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 58 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 61 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 64 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 67 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 70 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 73 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… 76 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-1.php o… [all …]
|
H A D | tempnam_variation4-0.phpt | 13 Description: Create file with unique file name. 16 /* Trying to create the file in a dir with permissions from 0000 to 0350, 55 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 58 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 61 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 64 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 67 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 70 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 73 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… 76 Notice: tempnam(): file created in the system's temporary directory in %stempnam_variation4-0.php o… [all …]
|
H A D | copy_variation5.phpt | 26 /* array of destination file names */ 52 echo "Destination file name => "; 56 echo "Size of source file => "; 60 echo "Size of destination file => "; 87 Destination file name => %s/COPY.tmp 88 Size of source file => int(1500) 89 Size of destination file => int(1500) 94 Destination file name => %s/COPY.TMP 95 Size of source file => int(1500) 101 Destination file name => %s/CopY.TMP [all …]
|
/PHP-7.4/ext/spl/tests/ |
H A D | SplFileObject_fputcsv_variation10.phpt | 47 //close the file 53 //delete file 54 unlink($file); 63 -- file opened in r+ -- 70 -- file opened in r+b -- 77 -- file opened in r+t -- 84 -- file opened in a+ -- 105 -- file opened in w+ -- 126 -- file opened in x+ -- 147 -- file opened in r+ -- [all …]
|
/PHP-7.4/ext/phar/tests/ |
H A D | bug79912.phpt | 13 $phar->addFromString("test.txt", "This is a test file.This is a test file.This is a test file."); 14 $file = $phar["test.txt"]; 15 var_dump($file->compress(Phar::GZ)); //true (success) 16 var_dump($file->getContent()); 17 var_dump($file->isCompressed()); //true (the file is compressed) 19 var_dump($file->isCompressed()); //false (the file should not be compressed anymore) 21 var_dump(file_get_contents(__DIR__ . "/bug79912/test.txt")); //the extracted file in the folder sho… 25 string(60) "This is a test file.This is a test file.This is a test file." 30 string(60) "This is a test file.This is a test file.This is a test file."
|
/PHP-7.4/ext/standard/tests/image/ |
H A D | getimagesize_basic.phpt | 11 // GIF file 14 //JPEG file 17 //PNG file 20 //SWF file 23 //BMP file 29 //JPC file 32 //JP2 file 35 //IFF file 52 -- GIF image file (200x100.gif) -- 94 -- PNG image file (200x100.png) -- [all …]
|