Home
last modified time | relevance | path

Searched refs:blob (Results 1 – 25 of 30) sorted by relevance

12

/php-src/ext/pdo_pgsql/tests/
H A Dbug46274.phpt28 $blob = fopen('php://memory', 'a');
29 fwrite($blob, $data);
30 rewind($blob);
32 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
35 $blob = '';
36 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
40 $blob = fopen('php://memory', 'a');
41 fwrite($blob, $data);
42 rewind($blob);
44 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
[all …]
H A Dbug46274_2.phpt28 $blob = fopen('php://memory', 'a');
29 fwrite($blob, $data);
30 rewind($blob);
32 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
35 $blob = '';
36 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
40 $blob = fopen('php://memory', 'a');
41 fwrite($blob, $data);
42 rewind($blob);
44 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
[all …]
/php-src/ext/mysqli/tests/
H A Dmysqli_stmt_send_long_data.phpt49 $blob = '';
56 $blob .= $tmp;
59 $limit = strlen($blob) - $max_allowed_packet - 1;
61 $blob .= 'a';
64 assert(strlen($blob) <= $max_allowed_packet);
67 mysqli_stmt_send_long_data($stmt, -1, $blob);
72 if (false !== ($tmp = mysqli_stmt_send_long_data($stmt, 999, $blob)))
76 if (true !== ($tmp = mysqli_stmt_send_long_data($stmt, 1, $blob)))
100 if ($blob != $row['label'])
H A Dmysqli_real_connect_compression_error.phpt29 $mysqli->query("CREATE TABLE test (`blob` LONGBLOB NOT NULL) ENGINE=MyISAM");
32 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')");
43 $mysqli->query("INSERT INTO $db.test(`blob`) VALUE ('$data')");
H A Dmysqli_stmt_send_long_data_packet_size_mysqlnd.phpt46 $blob = str_repeat($tmp, $limit);
48 assert(strlen($blob) <= $max_allowed_packet);
50 if (true !== ($tmp = mysqli_stmt_send_long_data($stmt, 1, $blob)))
70 // test with a blob smaller than 10M allows us to test
72 $limit = $max_allowed_packet - strlen($blob) + 1;
73 $blob2 = $blob;
H A Dmysqli_insert_packet_overflow.phpt77 $blob = str_repeat('a', $max_len - $com_query_len - $query_len);
78 $query = sprintf("%s%s%s", $query_prefix, $blob, $query_postfix);
89 if ($row['col_blob'] != $blob) {
92 var_dump(strlen($blob));
H A Dmysqli_stmt_get_result_types.phpt207 …// Note: you cannot insert any blob values this way. But you can check the API at least partly thi…
/php-src/ext/pdo_mysql/tests/
H A Dpdo_mysql_stmt_blobfromstream.phpt34 function blob_from_stream($offset, $db, $file, $blob) {
44 if (!$fp || !fwrite($fp, $blob)) {
88 if ($row['label'] != $blob) {
91 var_dump($blob);
100 $stmt->bindParam(2, $blob);
106 if ($row['label'] != $blob) {
109 var_dump($blob);
117 $blob = 'I am a mighty BLOB!' . chr(0) . "I am a binary thingie!";
125 blob_from_stream(10, $db, $file, $blob);
131 blob_from_stream(30, $db, $file, $blob);
/php-src/ext/pdo_sqlite/tests/subclasses/
H A Dpdosqlite_004_blobopen.phpt37 echo "Writing to blob\n";
42 echo "Expanding blob size\n";
61 Warning: fwrite(): Can't write to blob stream: is open as read only in %s on line %d
67 Writing to blob
71 Expanding blob size
/php-src/ext/spl/tests/SplObjectStorage/
H A DSplObjectStorage_unserialize_bad.phpt2 SPL: Test that serialized blob contains unique elements (CVE-2010-2225)
12 foreach($badblobs as $blob) {
15 $so->unserialize($blob);
/php-src/ext/pdo_sqlite/
H A Dpdo_sqlite.c130 sqlite3_blob *blob; member
150 if (sqlite3_blob_write(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_pdosqlite3_stream_write()
174 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_pdosqlite3_stream_read()
186 if (sqlite3_blob_close(sqlite3_stream->blob) != SQLITE_OK) { in php_pdosqlite3_stream_close()
292 sqlite3_blob *blob = NULL; in PHP_METHOD() local
311 …if (sqlite3_blob_open(sqlite_handle, dbname, table, column, rowid, sqlite_flags, &blob) != SQLITE_… in PHP_METHOD()
317 sqlite3_stream->blob = blob; in PHP_METHOD()
320 sqlite3_stream->size = sqlite3_blob_bytes(blob); in PHP_METHOD()
/php-src/ext/sqlite3/tests/
H A Dsqlite3_30_blobopen.phpt35 echo "Writing to blob\n";
40 echo "Expanding blob size\n";
62 Warning: fwrite(): Can't write to blob stream: is open as read only in %s on line %d
68 Writing to blob
72 Expanding blob size
H A Dsqlite3_09_blob_bound_param.phpt18 echo "Opening blob stream\n";
45 Opening blob stream
H A Dsqlite3_blob_bind_resource.phpt2 SQLite3::execute() with a resource bound for blob param
/php-src/ext/pdo/tests/
H A Dbug_34630.phpt34 * the empty blob will be committed implicitly when the statement is
37 … $db->prepare("insert into test34630 (id, val) values (1, EMPTY_BLOB()) RETURNING val INTO :blob");
39 $insert = $db->prepare("insert into test34630 (id, val) values (1, :blob)");
41 $insert->bindValue(':blob', $fp, PDO::PARAM_LOB);
/php-src/ext/pdo_firebird/tests/
H A Dbug_73087.phpt2 PDO_Firebird: bug 73087 segfault binding blob parameter
15 $dbh->exec('recreate table test73087 (id integer not null, content blob sub_type 1 segment size 80)…
H A Dbug_76452.phpt2 Bug ##76452 (Crash while parsing blob data in firebird_fetch_blob)
/php-src/ext/dom/tests/modern/spec/
H A Ddom_parsing_gh47_bis.phpt8 // Adapted from https://github.com/web-platform-tests/wpt/blob/master/domparsing/XMLSerializer-seri…
/php-src/
H A DSECURITY.md17 https://github.com/php/policies/blob/main/security-classification.rst
H A D.gitattributes1 # Replace $Id$ strings with 40-character hexadecimal blob object name.
/php-src/ext/curl/tests/
H A Dcurl_ssh_hostkey_invalid_callable.phpt9 die("skip: blob options not supported for curl < 7.84.0");
H A Dcurl_setopt_ssl.phpt15 die("skip: blob options not supported for curl < 7.71.0");
/php-src/docs/source/
H A Dindex.rst32 <https://github.com/php/php-src/blob/master/CONTRIBUTING.md#technical-resources>`__ file for a
/php-src/.github/
H A DCODEOWNERS12 # https://github.com/php/php-src/blob/master/CONTRIBUTING.md#pull-requests
/php-src/ext/sqlite3/
H A Dsqlite3.c1080 sqlite3_blob *blob; member
1100 if (sqlite3_blob_write(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_sqlite3_stream_write()
1124 if (sqlite3_blob_read(sqlite3_stream->blob, buf, count, sqlite3_stream->position) != SQLITE_OK) { in php_sqlite3_stream_read()
1136 if (sqlite3_blob_close(sqlite3_stream->blob) != SQLITE_OK) { in php_sqlite3_stream_close()
1247 sqlite3_blob *blob = NULL; in PHP_METHOD() local
1261 …if (sqlite3_blob_open(db_obj->db, dbname, table, column, rowid, sqlite_flags, &blob) != SQLITE_OK)… in PHP_METHOD()
1267 sqlite3_stream->blob = blob; in PHP_METHOD()
1270 sqlite3_stream->size = sqlite3_blob_bytes(blob); in PHP_METHOD()

Completed in 25 milliseconds

12