Home
last modified time | relevance | path

Searched refs:read (Results 26 – 50 of 624) sorted by relevance

12345678910>>...25

/php-src/ext/standard/tests/dir/
H A Ddir_basic.phpt23 var_dump( $d->read() );
24 var_dump( $d->read() );
35 echo "\nTest read after closing the dir:\n";
37 var_dump( $d->read() );
81 Test read after closing the dir:
82 Directory::read(): supplied resource is not a valid Directory resource
H A Ddir_basic-win32-mb.phpt29 var_dump( $d->read() );
30 var_dump( $d->read() );
41 echo "\nTest read after closing the dir:\n";
43 var_dump( $d->read() );
87 Test read after closing the dir:
88 Directory::read(): %s is not a valid Directory resource
H A Dreaddir_variation5.phpt13 * Open a directory with different premissions then try to read it
25 /*1*/ 0477, // owner has read only, other and group has rwx
28 /*3*/ 0444, // all have read only
31 /*5*/ 0400, // owner has read only, group and others have no permission
34 /*7*/ 0470, // owner has read only, group has rwx & others have no permission
35 0407, // owner has read only, other has rwx & group has no permission
41 // Open directory with different permission values, read and close, expected: none of them to succe…
/php-src/ext/standard/tests/file/
H A Dfflush_variation4.phpt2 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 ***
H A Dlstat_stat_variation13.phpt17 echo "*** Checking stat() on a file opened using read/write mode ***\n";
24 // opening file again in read mode
25 $file_handle = fopen($filename, "r"); // read file
42 *** Checking stat() on a file opened using read/write mode ***
/php-src/ext/standard/tests/general_functions/
H A Dproc_open_sockets3.phpt6 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'));
H A Dproc_open_sockets2.phpt6 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'));
/php-src/Zend/tests/
H A Dinclude_fail_during_read.phpt2 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-src/ext/mysqli/tests/
H A Dbug63398.phpt16 $read = $error = $reject = array();
17 $read[] = $error[] = $reject[] = $link;
20 mysqli_poll($read, $error, $reject, 1);
H A Dmysqli_poll.phpt24 $read = $error = $reject = array($link);
25 if (0 !== ($tmp = (mysqli_poll($read, $error, $reject, 0, 1))))
28 $read = $error = $reject = array($link);
30 mysqli_poll($read, $error, $reject, -1, 1);
35 mysqli_poll($read, $error, $reject, 0, -1);
41 $read[0] = get_connection();
43 mysqli_poll($read, $error, $reject, 0, 1);
51 printf("[%03d + 1] There should be %d links ready to read from, %d ready\n",
/php-src/ext/standard/tests/streams/
H A Dbug74090.phpt24 $read = array($server);
27 if (stream_select($read, $write, $exc, 0, 250000) === false) die ("stream_select timeout");
30 $read = array($fd);
31 if (stream_select($read, $write, $exc, 0, 250000) === false) die ("stream_select timeout");
H A Dbug69521.phpt22 $read = $write = array($fp);
27 $changed = stream_select($read, $write, $except, 0, 500000);
29 if (!empty($read))
/php-src/ext/xmlreader/tests/
H A D006.phpt15 // 2 read to get on the 2nd node
16 $reader->read();
17 $reader->read();
H A Dlibxml_global_state_entity_loader_bypass.phpt21 $reader->read();
26 $reader->read();
31 $reader->read();
H A DfromString_custom_constructor.phpt22 var_dump($reader->read());
57 Failed to read property because no XML data has been read yet
H A D012.phpt15 $reader->read();
33 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
48 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
56 while($reader->read() && $reader->nodeType != XMLReader::ELEMENT);
/php-src/ext/session/tests/user_session_module/
H A Dbug70133.phpt2 Bug #70133 (Extended SessionHandler::read is ignoring $session_id when calling parent)
14 public function read($session_id): string|false {
15 return parent::read('mycustomsession');
H A Dsession_set_save_handler_class_005.phpt22 public function read($id): string|false {
24 return parent::read($id);
40 Warning: SessionHandler::read(): Parent session handler is not open in %ssession_set_save_handler_c…
44 Warning: session_start(): Failed to read session data: user (%s) in %ssession_set_save_handler_clas…
H A Dbug32330.phpt29 function read($id): string|false
31 echo "read: id = {$id}\n";
74 read: id = %s
79 read: id = %s
84 read: id = %s
/php-src/ext/opcache/tests/jit/
H A Dfetch_obj_005.phpt18 Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
20 Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
22 Warning: Attempt to read property "p" on null in %sfetch_obj_005.php on line 4
/php-src/ext/zlib/tests/
H A Dgzrewind_basic2.phpt10 // read to the end of the file
11 echo "read to the end of the file, then rewind\n";
23 read to the end of the file, then rewind
/php-src/ext/gd/tests/
H A Dbug79945.phpt15 imagecreatefrompng('php://filter/read=convert.base64-encode/resource=' . __DIR__ . '/test.png');
20 imagecreatefrompng('php://filter/read=convert.base64-encode/resource=' . __DIR__ . '/test.png');
25 Warning: imagecreatefrompng(): "php://filter/read=convert.base64-encode/resource=%s" is not a valid…
/php-src/ext/openssl/tests/
H A Dbug77390.phpt25 $read = [$fp];
29 while (stream_select($read, $write, $except, 1000)) {
86 $read = [$upstream, $conn];
87 while (stream_select($read, $write, $except, 1)) {
88 foreach ($read as $fp) {
107 $read = [$upstream, $conn];
/php-src/Zend/
H A Dzend_stream.c162 ssize_t read; in zend_stream_fixup() local
165 while ((read = zend_stream_read(file_handle, *buf + size, file_size - size)) > 0) { in zend_stream_fixup()
166 size += read; in zend_stream_fixup()
168 if (read < 0) { in zend_stream_fixup()
176 ssize_t read; in zend_stream_fixup() local
179 while ((read = zend_stream_read(file_handle, *buf + size, remain)) > 0) { in zend_stream_fixup()
180 size += read; in zend_stream_fixup()
181 remain -= read; in zend_stream_fixup()
188 if (read < 0) { in zend_stream_fixup()
/php-src/ext/bz2/tests/
H A Dbug71263.phpt37 echo "read: "; var_dump($s);
51 read: bool(false)
53 read: string(0) ""
57 read: bool(false)

Completed in 24 milliseconds

12345678910>>...25