Lines Matching refs:stream
2 SQLite3::blobOpen stream test
24 $stream = $db->openBlob('test', 'data', 1);
25 var_dump($stream);
27 var_dump(stream_get_contents($stream));
28 echo "Writing to read-only stream\n";
29 var_dump(fwrite($stream, 'ABCD'));
31 var_dump(fclose($stream));
32 echo "Opening stream in write mode\n";
33 $stream = $db->openBlob('test', 'data', 1, 'main', SQLITE3_OPEN_READWRITE);
34 var_dump($stream);
36 var_dump(fwrite($stream, 'ABCD'));
38 fseek($stream, 0);
39 var_dump(stream_get_contents($stream));
41 var_dump(fwrite($stream, 'ABCD ABCD ABCD'));
43 var_dump(fclose($stream));
57 resource(%d) of type (stream)
60 Writing to read-only stream
62 Warning: fwrite(): Can't write to blob stream: is open as read only in %s on line %d
66 Opening stream in write mode
67 resource(%d) of type (stream)