/PHP-7.4/ext/standard/tests/streams/ |
H A D | stream_select_preserve_keys.phpt | 5 $read[1] = fopen(__FILE__, 'r'); 6 $read['myindex'] = reset($read); 10 var_dump($read); 11 stream_select($read, $write, $except, 0); 12 var_dump($read); 13 fread(reset($read), 1); 14 stream_select($read, $write, $except, 0); // // emulate_read 15 var_dump($read);
|
H A D | bug53427.phpt | 5 $read[1] = fopen(__FILE__, "r"); 6 $read["myindex"] = reset($read); 10 var_dump($read); 12 stream_select($read, $write, $except, 0); 14 var_dump($read);
|
H A D | stream_set_chunk_size.phpt | 13 echo "read with size: ", $count, "\n"; 30 /* when the chunk size is 1, the read buffer is skipped, but the 35 echo "should be read without buffer (\$count == 10000)\n"; 42 echo "should elicit one read of size 100 (chunk size)\n"; 44 echo "should elicit one read of size 100 (chunk size)\n"; 59 should be read without buffer ($count == 10000) 60 read with size: 10000 69 should elicit one read of size 100 (chunk size) 70 read with size: 100 72 should elicit one read of size 100 (chunk size) [all …]
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | fscanf_variation51.phpt | 11 /* Test fscanf() to scan a file for read when file is opened inwrite only mode */ 15 echo "*** Test fscanf(): to read from a file opened in write only mode ***\n"; 69 *** Test fscanf(): to read from a file opened in write only mode *** 73 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 76 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 79 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 82 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 85 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 88 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 91 Notice: fscanf(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d [all …]
|
H A D | fgetcsv_variation26.phpt | 10 /* Testing fgetcsv() to read from files opened in write only mode */ 14 /* the array is with three elements in it. Each element should be read as 52 // this will be used to test, if the fgetcsv() read more than a line and its 53 // working when only a blank line is read 84 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 91 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 98 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 105 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 112 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 119 Notice: fgetcsv(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d [all …]
|
H A D | fread_variation2.phpt | 8 Reading stops when up to length bytes have been read, EOF (end of file) is 20 bytes are read. 22 $read_size : No. of bytes to be read. 24 Returns: returns the data read 27 // print file pointer position before read 31 // read the data of size $read_size 35 // check if data read is of expected size 41 // file pointer position after read 82 // read from file, by giving the file actual size, 84 // calculate the hash and dump it, if data read, expecting here no data was read [all …]
|
H A D | file_get_contents_variation7-win32-mb.phpt | 53 fwrite($h, "contents read"); 74 string(%d) "contents read" 77 string(%d) "contents read" 80 string(%d) "contents read" 83 string(%d) "contents read" 96 string(%d) "contents read" 99 string(%d) "contents read" 102 string(%d) "contents read" 105 string(%d) "contents read" 113 string(%d) "contents read"
|
H A D | file_get_contents_variation7-win32.phpt | 53 fwrite($h, "contents read"); 74 string(%d) "contents read" 77 string(%d) "contents read" 80 string(%d) "contents read" 83 string(%d) "contents read" 96 string(%d) "contents read" 99 string(%d) "contents read" 102 string(%d) "contents read" 105 string(%d) "contents read" 113 string(%d) "contents read"
|
H A D | file_variation8-win32.phpt | 53 fwrite($h, "contents read"); 76 string(13) "contents read" 82 string(13) "contents read" 88 string(13) "contents read" 94 string(13) "contents read" 110 string(13) "contents read" 116 string(13) "contents read" 122 string(13) "contents read" 128 string(13) "contents read" 139 string(13) "contents read"
|
H A D | file_variation8.phpt | 45 fwrite($h, "contents read"); 68 string(13) "contents read" 74 string(13) "contents read" 80 string(13) "contents read" 86 string(13) "contents read" 102 string(13) "contents read" 108 string(13) "contents read" 114 string(13) "contents read" 120 string(13) "contents read"
|
H A D | fgetss_variation1-win32.phpt | 67 /* read entire file and strip tags */ 69 var_dump( fgetss($file_handle) ); // expected : no character should be read 90 -- fgetss() with default length, file pointer at 0 , expected : no character should be read -- 92 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 102 -- fgetss() with default length, file pointer at 0 , expected : no character should be read -- 104 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 116 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 128 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 140 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 152 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d [all …]
|
H A D | fgetss_variation1.phpt | 63 /* read entire file and strip tags */ 65 var_dump( fgetss($file_handle) ); // expected : no character should be read 86 -- fgetss() with default length, file pointer at 0 , expected : no character should be read -- 88 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 98 -- fgetss() with default length, file pointer at 0 , expected : no character should be read -- 100 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 112 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 124 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 136 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d 148 Notice: fgetss(): read of 8192 bytes failed with errno=9 Bad file descriptor in %s on line %d [all …]
|
H A D | file_get_contents_variation7.phpt | 45 fwrite($h, "contents read"); 66 string(%d) "contents read" 69 string(%d) "contents read" 72 string(%d) "contents read" 75 string(%d) "contents read" 88 string(%d) "contents read" 91 string(%d) "contents read" 94 string(%d) "contents read" 97 string(%d) "contents read"
|
H A D | fread_variation4.phpt | 2 Test fread() function : usage variations - read beyond file size, write only mode 8 Reading stops when up to length bytes have been read, EOF (end of file) is 10 opening userspace stream) when 8192 bytes have been read whichever comes first. 18 bytes are read. 20 $read_size : No. of bytes to be read. 22 Returns: returns the data read 25 // print file pointer position before read 29 // read the data of size $read_size 33 // check if data read is of expected size 39 // file pointer position after read [all …]
|
H A D | stat_variation5-win32.phpt | 2 Test stat() functions: usage variations - file opened in read/write mode 17 /* test the stats of file opened in write mode and then same in read mode */ 27 echo "\n*** Testing stat(): on a file with read/write permission ***\n"; 36 // opening file again in read mode 37 $file_handle = fopen($filename, "r"); // read file 58 *** Testing stat(): on a file with read/write permission ***
|
/PHP-7.4/ext/libxml/tests/ |
H A D | bug61367-read_2.phpt | 2 Bug #61367: open_basedir bypass in libxml RSHUTDOWN: read test 37 var_dump(mkdir('test_bug_61367-read')); 38 var_dump(mkdir('test_bug_61367-read/base')); 39 var_dump(file_put_contents('test_bug_61367-read/bad', 'blah')); 40 var_dump(chdir('test_bug_61367-read/base')); 48 unlink('test_bug_61367-read/bad'); 49 rmdir('test_bug_61367-read/base'); 50 rmdir('test_bug_61367-read'); 58 …: I/O warning : failed to load external entity "file:///%s/test_bug_61367-read/bad" in %s on line …
|
H A D | bug61367-read.phpt | 2 Bug #61367: open_basedir bypass in libxml RSHUTDOWN: read test 38 var_dump(mkdir('test_bug_61367-read')); 39 var_dump(mkdir('test_bug_61367-read/base')); 40 var_dump(file_put_contents('test_bug_61367-read/bad', 'blah')); 41 var_dump(chdir('test_bug_61367-read/base')); 49 unlink('test_bug_61367-read/bad'); 50 rmdir('test_bug_61367-read/base'); 51 rmdir('test_bug_61367-read'); 59 …: I/O warning : failed to load external entity "file:///%s/test_bug_61367-read/bad" in %s on line …
|
/PHP-7.4/ext/xmlreader/tests/ |
H A D | next_basic.phpt | 12 $reader->read(); 17 $reader->read(); 18 $reader->read(); 32 Warning: XMLReader::read(): Load Data before trying to read in %s on line %d 34 Warning: XMLReader::next(): Load Data before trying to read in %s on line %d
|
H A D | bug64230.phpt | 23 $x->read(); 32 $x->read(); 45 Warning: XMLReader::read(): %s: parser error : Specification mandate%A value for attribute att in %… 47 Warning: XMLReader::read(): <root att/> in %s on line %d 49 Warning: XMLReader::read(): ^ in %s on line %d
|
/PHP-7.4/ext/zlib/tests/ |
H A D | bug71417.phpt | 16 // --> read: string(0) "" 17 // --> read: string(44) "The quick brown fox jumps over the lazx8dog." 24 // --> read: string(32) "The quick brown fox jumps over t" 31 // --> read: string(0) "" 32 // --> read: string(44) "The quick brown fox jumps over the lazy dog." 39 // read: string(44) "The quick brown fox jumps over the lazy dog." 56 echo "read: "; var_dump($s); 72 read: bool(false) 76 read: string(32) "The quick brown fox jumps over t" 80 read: bool(false) [all …]
|
/PHP-7.4/ext/oci8/tests/ |
H A D | lob_031.phpt | 2 Test LOB->read(), LOB->seek() and LOB->tell() with nul bytes in data 37 $row[0]->read(3); 40 $row[0]->read(3); 43 $row[0]->read(3); 46 $row[0]->read(6); 49 $row[0]->read(4); 53 $row[0]->read(5); 56 $row[0]->read(1);
|
/PHP-7.4/ext/spl/tests/ |
H A D | bug80933.phpt | 14 $read = $temp->fgets(); 15 var_dump($line === $read); 19 $read = $temp->fgets(); 20 var_dump($line === $read);
|
/PHP-7.4/ext/openssl/tests/ |
H A D | openssl_x509_read_basic.phpt | 17 var_dump(openssl_x509_read($a)); // read cert as a string 18 var_dump(openssl_x509_read($b)); // read cert as a filename string 19 var_dump(openssl_x509_read($c)); // read an invalid cert, fails 20 var_dump(openssl_x509_read($d)); // read cert from a resource 21 var_dump(openssl_x509_read($e)); // read an array 22 var_dump(openssl_x509_read($f)); // read an array with the filename
|
H A D | openssl_x509_export_to_file_basic.phpt | 16 var_dump(openssl_x509_export_to_file($a, $outfilename)); // read cert as a binary string 17 var_dump(openssl_x509_export_to_file($b, $outfilename)); // read cert from a filename string 18 var_dump(openssl_x509_export_to_file($c, $outfilename)); // read an invalid cert, fails 19 var_dump(openssl_x509_export_to_file($d, $outfilename)); // read cert from a resource 20 var_dump(openssl_x509_export_to_file($e, $outfilename)); // read an array, fails
|
/PHP-7.4/ext/ffi/tests/ |
H A D | 020.phpt | 2 FFI 020: read-only 64 FFI\Exception: Attempt to assign read-only field 'y' 65 FFI\Exception: Attempt to assign read-only field 'x' 66 FFI\Exception: Attempt to assign read-only location 67 FFI\Exception: Attempt to assign read-only location 69 FFI\Exception: Attempt to assign read-only location 70 FFI\Exception: Attempt to assign read-only location
|