/PHP-8.0/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"; 67 should be read without buffer ($count == 10000) 68 read with size: 10000 75 should elicit one read of size 100 (chunk size) 76 read with size: 100 78 should elicit one read of size 100 (chunk size) [all …]
|
/PHP-8.0/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 … 60 Warning: Attempt to read property "nodeValue" on null in %s on line %d
|
H A D | bug61367-read.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 … 64 Warning: Attempt to read property "firstChild" on null in %s on line %d [all …]
|
/PHP-8.0/ext/standard/tests/file/ |
H A D | file_get_contents_variation7-win32.phpt | 47 fwrite($h, "contents read"); 68 string(%d) "contents read" 71 string(%d) "contents read" 74 string(%d) "contents read" 77 string(%d) "contents read" 90 string(%d) "contents read" 93 string(%d) "contents read" 96 string(%d) "contents read" 99 string(%d) "contents read" 107 string(%d) "contents read"
|
H A D | file_variation8-win32.phpt | 47 fwrite($h, "contents read"); 70 string(13) "contents read" 76 string(13) "contents read" 82 string(13) "contents read" 88 string(13) "contents read" 104 string(13) "contents read" 110 string(13) "contents read" 116 string(13) "contents read" 122 string(13) "contents read" 133 string(13) "contents read"
|
H A D | file_get_contents_variation7-win32-mb.phpt | 47 fwrite($h, "contents read"); 68 string(%d) "contents read" 71 string(%d) "contents read" 74 string(%d) "contents read" 77 string(%d) "contents read" 90 string(%d) "contents read" 93 string(%d) "contents read" 96 string(%d) "contents read" 99 string(%d) "contents read" 107 string(%d) "contents read"
|
H A D | file_variation8.phpt | 39 fwrite($h, "contents read"); 62 string(13) "contents read" 68 string(13) "contents read" 74 string(13) "contents read" 80 string(13) "contents read" 96 string(13) "contents read" 102 string(13) "contents read" 108 string(13) "contents read" 114 string(13) "contents read"
|
H A D | file_get_contents_variation7.phpt | 39 fwrite($h, "contents read"); 60 string(%d) "contents read" 63 string(%d) "contents read" 66 string(%d) "contents read" 69 string(%d) "contents read" 82 string(%d) "contents read" 85 string(%d) "contents read" 88 string(%d) "contents read" 91 string(%d) "contents read"
|
H A D | stat_variation5-win32.phpt | 2 Test stat() functions: usage variations - file opened in read/write mode 12 /* test the stats of file opened in write mode and then same in read mode */ 22 echo "\n*** Testing stat(): on a file with read/write permission ***\n"; 31 // opening file again in read mode 32 $file_handle = fopen($filename, "r"); // read file 53 *** Testing stat(): on a file with read/write permission ***
|
H A D | fflush_variation4.phpt | 2 Test fflush() function: usage variations - file opened in read-only mode 6 /* test fflush() with handle to a file opened in read-only mode as resource */ 11 echo "*** Testing fflush(): with file handles of files opened in various read modes ***\n"; 27 // opening the file in different read modes 41 *** Testing fflush(): with file handles of files opened in various read modes ***
|
/PHP-8.0/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-8.0/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-8.0/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 23 openssl_x509_read($e); // read an array 29 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 21 openssl_x509_export_to_file($e, $outfilename); // read an array, fails
|
H A D | openssl_x509_export_basic.phpt | 15 var_dump(openssl_x509_export($a, $output)); // read cert as a binary string 16 var_dump(openssl_x509_export($b, $output2)); // read cert from a filename string 17 var_dump(openssl_x509_export($c, $output3)); // read an invalid cert, fails 18 var_dump(openssl_x509_export($d, $output4)); // read cert from a resource 21 openssl_x509_export($e, $output5); // read an array, fails
|
/PHP-8.0/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); 74 read: bool(false) 78 read: string(32) "The quick brown fox jumps over t" 84 read: bool(false) [all …]
|
/PHP-8.0/ext/xmlreader/tests/ |
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
|
H A D | 013.phpt | 20 while($reader->read()) { 22 $reader->read(); 40 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT); 49 Warning: XMLReader::read(): Element 'foo': %s
|
H A D | 014.phpt | 2 XMLReader: libxml2 XML Reader, read-only element values can not be modified 18 exit('XML could not be read'); 22 while ($reader->read()) { 57 Cannot write to read-only property 58 Cannot write to read-only property 59 Cannot write to read-only property
|
/PHP-8.0/ext/shmop/tests/ |
H A D | shmop_open_private.phpt | 15 $read = shmop_read($shm2, 0, 4); 17 var_dump(is_string($read) && $read !== $write);
|
/PHP-8.0/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
|
/PHP-8.0/Zend/tests/ |
H A D | include_fail_during_read.phpt | 2 Include fails during read 7 include 'php://filter/read=sample.filter/resource='. __FILE__; 12 Warning: include(): Failed opening 'php://filter/read=sample.filter/resource=%s' for inclusion (inc…
|
/PHP-8.0/ext/standard/tests/general_functions/ |
H A D | proc_open_sockets3.phpt | 6 function poll($pipe, $read = true) 8 $r = ($read == true) ? [$pipe] : null; 9 $w = ($read == false) ? [$pipe] : null; 22 throw new Error("Failed to read: " . (error_get_last()['message'] ?? 'N/A'));
|