/php-src/ext/pdo_pgsql/tests/ |
H A D | bug46274.phpt | 28 $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 D | bug46274_2.phpt | 28 $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 D | mysqli_stmt_send_long_data.phpt | 49 $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 D | mysqli_real_connect_compression_error.phpt | 29 $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 D | mysqli_stmt_send_long_data_packet_size_mysqlnd.phpt | 46 $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 D | mysqli_insert_packet_overflow.phpt | 77 $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 D | mysqli_stmt_get_result_types.phpt | 207 …// 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 D | pdo_mysql_stmt_blobfromstream.phpt | 34 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 D | pdosqlite_004_blobopen.phpt | 37 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 D | SplObjectStorage_unserialize_bad.phpt | 2 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 D | pdo_sqlite.c | 130 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 D | sqlite3_30_blobopen.phpt | 35 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 D | sqlite3_09_blob_bound_param.phpt | 18 echo "Opening blob stream\n"; 45 Opening blob stream
|
H A D | sqlite3_blob_bind_resource.phpt | 2 SQLite3::execute() with a resource bound for blob param
|
/php-src/ext/pdo/tests/ |
H A D | bug_34630.phpt | 34 * 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 D | bug_73087.phpt | 2 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 D | bug_76452.phpt | 2 Bug ##76452 (Crash while parsing blob data in firebird_fetch_blob)
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | dom_parsing_gh47_bis.phpt | 8 // Adapted from https://github.com/web-platform-tests/wpt/blob/master/domparsing/XMLSerializer-seri…
|
/php-src/ |
H A D | SECURITY.md | 17 https://github.com/php/policies/blob/main/security-classification.rst
|
H A D | .gitattributes | 1 # Replace $Id$ strings with 40-character hexadecimal blob object name.
|
/php-src/ext/curl/tests/ |
H A D | curl_ssh_hostkey_invalid_callable.phpt | 9 die("skip: blob options not supported for curl < 7.84.0");
|
H A D | curl_setopt_ssl.phpt | 15 die("skip: blob options not supported for curl < 7.71.0");
|
/php-src/docs/source/ |
H A D | index.rst | 32 <https://github.com/php/php-src/blob/master/CONTRIBUTING.md#technical-resources>`__ file for a
|
/php-src/.github/ |
H A D | CODEOWNERS | 12 # https://github.com/php/php-src/blob/master/CONTRIBUTING.md#pull-requests
|
/php-src/ext/sqlite3/ |
H A D | sqlite3.c | 1080 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()
|