/PHP-7.0/ext/standard/tests/file/ |
H A D | fgetcsv_variation29.phpt | 2 Test fgetcsv() : usage variations - with only file handle as argument, file pointer pointing at end… 11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file 15 echo "*** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of… 60 // else rewind the file pointer to beginning of the file 68 // set the file pointer to EOF 73 // now file pointer should point to end of the file, try reading again 76 // check the file pointer position and if eof 79 // close the file 81 //delete file 89 *** Testing fgetcsv() : with file handle as only argument and file pointer pointing at end of file … [all …]
|
H A D | fgetcsv_variation9.phpt | 50 echo "Error: failed to create file $filename!\n"; 64 // else rewind the file pointer to beginning of the file 69 // rewind the file pointer to bof 81 // check the file pointer position and if eof 85 // close the file 87 //delete file 97 -- Testing fgetcsv() with file opened using r mode -- 105 -- Testing fgetcsv() with file opened using rb mode -- 113 -- Testing fgetcsv() with file opened using rt mode -- 121 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fread_variation3-win32.phpt | 19 // include the file.inc for common functions for test 20 include ("file.inc"); 31 // print file pointer position before read 45 // file pointer position after read 47 // check if file pointer at eof() 86 // read file by giving size more than its size 95 // try fread when file pointer at end 97 //reading file when file pointer at end 102 // now close the file 105 // delete the file created [all …]
|
H A D | fread_variation3.phpt | 19 // include the file.inc for common functions for test 20 include ("file.inc"); 31 // print file pointer position before read 45 // file pointer position after read 47 // check if file pointer at eof() 86 // read file by giving size more than its size 95 // try fread when file pointer at end 97 //reading file when file pointer at end 102 // now close the file 105 // delete the file created [all …]
|
H A D | fread_variation4-win32.phpt | 19 // include the file.inc for common functions for test 20 include ("file.inc"); 31 // print file pointer position before read 45 // file pointer position after read 47 // check if file pointer at eof() 85 // read file by giving size more than its size 93 // try fread when file pointer at end 95 //reading file when file pointer at end 100 // now close the file 103 // delete the file created [all …]
|
H A D | fread_variation4.phpt | 19 // include the file.inc for common functions for test 20 include ("file.inc"); 31 // print file pointer position before read 45 // file pointer position after read 47 // check if file pointer at eof() 85 // read file by giving size more than its size 93 // try fread when file pointer at end 95 //reading file when file pointer at end 100 // now close the file 103 // delete the file created [all …]
|
H A D | fgetcsv_variation30.phpt | 2 Test fgetcsv() : usage variations - with file handle and length, file pointer pointing at end of fi… 11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file 15 echo "*** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end o… 46 echo "Error: failed to create file $filename!\n"; 67 // set the file pointer to EOF 72 // now file pointer should point to end of the file, try reading again 75 // check the file pointer position and if eof 78 // close the file 80 //delete file 88 *** Testing fgetcsv() : with file handle and length arguments, file pointer pointing at end of file… [all …]
|
H A D | fgetss_basic2-win32.phpt | 47 echo "Error: failed to open file $filename!\n"; 51 // rewind the file pointer to beginning of the file 57 /* read entire file and strip tags */ 64 /* read entire file and strip tags tags */ 70 // close the file 73 // delete the file 92 -- fgets() with length = 30, file pointer at 0 -- 107 -- fgets() with length = 30, file pointer at 0 -- 122 -- fgets() with length = 30, file pointer at 0 -- 137 -- fgets() with length = 30, file pointer at 0 -- [all …]
|
H A D | fgetss_basic2.phpt | 45 echo "Error: failed to open file $filename!\n"; 49 // rewind the file pointer to beginning of the file 55 /* read entire file and strip tags */ 62 /* read entire file and strip tags tags */ 68 // close the file 71 // delete the file 90 -- fgets() with length = 30, file pointer at 0 -- 105 -- fgets() with length = 30, file pointer at 0 -- 120 -- fgets() with length = 30, file pointer at 0 -- 135 -- fgets() with length = 30, file pointer at 0 -- [all …]
|
H A D | fwrite_variation4-win32.phpt | 23 include ("file.inc"); 61 // close the file, get the size and content of the file. 77 -- Opening file in x -- 85 -- Opening file in xb -- 93 -- Opening file in xt -- 101 -- Opening file in x+ -- 127 -- Opening file in x -- 135 -- Opening file in xb -- 143 -- Opening file in xt -- 177 -- Opening file in x -- [all …]
|
H A D | fwrite_variation4.phpt | 23 include ("file.inc"); 61 // close the file, get the size and content of the file. 77 -- Opening file in x -- 85 -- Opening file in xb -- 93 -- Opening file in xt -- 101 -- Opening file in x+ -- 127 -- Opening file in x -- 135 -- Opening file in xb -- 143 -- Opening file in xt -- 177 -- Opening file in x -- [all …]
|
H A D | fgetcsv_variation31.phpt | 2 Test fgetcsv() : usage variations - with length and enclosure, file pointer pointing at end of file 11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file 15 echo "*** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file ***\n"; 60 // else rewind the file pointer to beginning of the file 68 // set the file pointer to EOF 73 // now file pointer should point to end of the file, try reading again 77 // check the file pointer position and if eof 80 // close the file 82 //delete file 90 *** Testing fgetcsv() : with enclosure argument, file pointer pointing at end of file *** [all …]
|
H A D | fgets_basic.phpt | 7 Description: Gets a line from file pointer 10 // include the file.inc for common test funcitons 11 include ("file.inc"); 27 echo "Error: failed to open file $filename!"; 42 //close file 45 // delete file 55 -- Testing fgets() with file opened using mode r -- 57 -- fgets() with default length, file pointer at 0 -- 67 -- fgets() with default length, file pointer at 0 -- 77 -- fgets() with default length, file pointer at 0 -- [all …]
|
H A D | fgets_variation3.phpt | 7 Description: Gets a line from file pointer 10 // include the file.inc for common test funcitons 11 include ("file.inc"); 34 echo "Error: failed to open file $filename!"; 39 // get the file pointer to beginning of the file 48 // get the file pointer to beginning of the file 56 //close file 59 // delete file 69 -- Testing fgets() with file opened using mode w+ -- 71 -- fgets() with default length, file pointer at 0 -- [all …]
|
H A D | fgetcsv_variation18.phpt | 45 echo "Error: failed to create file $filename!\n"; 58 // else rewind the file pointer to beginning of the file 63 // rewind the file pointer to bof 71 // use different delimiter than existing in file 75 // check the file pointer position and if eof 79 // close the file 81 //delete file 91 -- Testing fgetcsv() with file opened using r mode -- 99 -- Testing fgetcsv() with file opened using rb mode -- 107 -- Testing fgetcsv() with file opened using rt mode -- [all …]
|
H A D | fgetcsv_variation22.phpt | 2 Test fgetcsv() : usage variations - with default enclosure, file pointer pointing at end of file 11 Testing fgetcsv() to read a file whose file pointer is pointing to end of file 15 echo "*** Testing fgetcsv() : with default enclosure, file pointer pointing at end of file ***\n"; 46 echo "Error: failed to create file $filename!\n"; 67 // set the file pointer to EOF 72 // now file pointer should point to end of the file, try reading again 75 // check the file pointer position and if eof 78 // close the file 80 //delete file 88 *** Testing fgetcsv() : with default enclosure, file pointer pointing at end of file *** [all …]
|
H A D | unlink_variation2-win32.phpt | 2 Test unlink() function : usage variations - unlink file in use 15 /* Try to unlink file when file handle is still in use */ 19 echo "*** Testing unlink() on a file when file handle is open ***\n"; 20 // temp file name used here 23 // create file 26 var_dump( unlink($filename) ); // expected: false as file handle is still open 27 // now close file handle 30 // now unlink file 32 var_dump( file_exists($filename) ); // confirm file is deleted 37 *** Testing unlink() on a file when file handle is open ***
|
H A D | fgets_variation6-win32.phpt | 13 Description: Gets a line from file pointer 16 // include the file.inc for common test funcitons 17 include ("file.inc"); 45 // seek to end of the file and try fgets() 54 //close file 57 // delete file 69 -- fgets() with file pointer pointing at EOF -- 77 -- fgets() with file pointer pointing at EOF -- 85 -- fgets() with file pointer pointing at EOF -- 93 -- fgets() with file pointer pointing at EOF -- [all …]
|
H A D | fgets_variation6.phpt | 13 Description: Gets a line from file pointer 16 // include the file.inc for common test funcitons 17 include ("file.inc"); 45 // seek to end of the file and try fgets() 54 //close file 57 // delete file 69 -- fgets() with file pointer pointing at EOF -- 77 -- fgets() with file pointer pointing at EOF -- 85 -- fgets() with file pointer pointing at EOF -- 93 -- fgets() with file pointer pointing at EOF -- [all …]
|
H A D | file_variation7.phpt | 2 file() on a file with blank lines 11 echo "file():\n"; 12 var_dump(file($filepath)); 15 var_dump(file($filepath, FILE_IGNORE_NEW_LINES)); 18 var_dump(file($filepath, FILE_SKIP_EMPTY_LINES)); 21 var_dump(file($filepath, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES)); 27 file(): 45 file() with FILE_IGNORE_NEW_LINES: 59 file() with FILE_SKIP_EMPTY_LINES: 77 file() with FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES:
|
H A D | fgetcsv_variation1.phpt | 47 echo "Error: failed to create file $filename!\n"; 62 // else rewind the file pointer to beginning of the file 67 // rewind the file pointer to bof 77 // check the file pointer position and if eof 81 // close the file 83 //delete file 93 -- Testing fgetcsv() with file opened using r mode -- 103 -- Testing fgetcsv() with file opened using rb mode -- 113 -- Testing fgetcsv() with file opened using rt mode -- 123 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation2.phpt | 47 echo "Error: failed to create file $filename!\n"; 62 // else rewind the file pointer to beginning of the file 67 // 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 -- 104 -- Testing fgetcsv() with file opened using rb mode -- 114 -- Testing fgetcsv() with file opened using rt mode -- 124 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
H A D | fgetcsv_variation7.phpt | 47 echo "Error: failed to create file $filename!\n"; 61 // else rewind the file pointer to beginning of the file 66 // rewind the file pointer to bof 77 // check the file pointer position and if eof 81 // close the file 83 //delete file 93 -- Testing fgetcsv() with file opened using r mode -- 103 -- Testing fgetcsv() with file opened using rb mode -- 113 -- Testing fgetcsv() with file opened using rt mode -- 123 -- Testing fgetcsv() with file opened using r+ mode -- [all …]
|
/PHP-7.0/ext/curl/tests/ |
H A D | curl_file_upload.phpt | 2 CURL file uploading 14 $file = new CurlFile($name, $mime); 16 $file = new CurlFile($name); 18 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 34 $file->setMimeType('text/plain'); 35 var_dump($file->getMimeType()); 36 var_dump($file->getFilename()); 37 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); 41 $file->setPostFilename('foo.txt'); 43 curl_setopt($ch, CURLOPT_POSTFIELDS, array("file" => $file)); [all …]
|
/PHP-7.0/ext/pdo_mysql/tests/ |
H A D | pdo_mysql___construct_uri.phpt | 24 $uri = sprintf('uri:file:%s', $file); 26 if ($fp = @fopen($file, 'w')) { 31 assert(file_exists($file)); 37 $file, filesize($file), file_get_contents($file), 40 unlink($file); 43 if ($fp = @fopen($file, 'w')) { 48 assert(file_exists($file)); 54 $file, filesize($file), file_get_contents($file), 57 unlink($file); 74 Warning: PDO::__construct(file:/tmp/pdomuri.tst): failed to open stream: No such file or directory … [all …]
|