Home
last modified time | relevance | path

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

12

/PHP-8.4/ext/pdo_pgsql/tests/
H A Dbug46274.phpt29 $blob = fopen('php://memory', 'a');
30 fwrite($blob, $data);
31 rewind($blob);
33 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
36 $blob = '';
37 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
41 $blob = fopen('php://memory', 'a');
42 fwrite($blob, $data);
43 rewind($blob);
45 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
[all …]
H A Dbug46274_2.phpt29 $blob = fopen('php://memory', 'a');
30 fwrite($blob, $data);
31 rewind($blob);
33 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
36 $blob = '';
37 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
41 $blob = fopen('php://memory', 'a');
42 fwrite($blob, $data);
43 rewind($blob);
45 $stmt->bindparam(':foo', $blob, PDO::PARAM_LOB);
[all …]
/PHP-8.4/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-8.4/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-8.4/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-8.4/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-8.4/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-8.4/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-8.4/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-8.4/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-8.4/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-8.4/
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-8.4/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-8.4/.github/
H A DCODEOWNERS12 # https://github.com/php/php-src/blob/master/CONTRIBUTING.md#pull-requests
/PHP-8.4/docs/source/
H A Dindex.rst32 <https://github.com/php/php-src/blob/master/CONTRIBUTING.md#technical-resources>`__ file for a
/PHP-8.4/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 59 milliseconds

12