xref: /PHP-8.1/ext/sqlite3/tests/bug72571.phpt (revision 7f2f0c00)
1--TEST--
2Bug #72571 (SQLite3::bindValue, SQLite3::bindParam crash)
3--EXTENSIONS--
4sqlite3
5--FILE--
6<?php
7$db = new SQLite3(':memory:');
8
9$stmt = $db->prepare("select 1 = ?");
10
11// bindParam crash
12$i = 0;
13$stmt->bindParam(0, $i);
14
15var_dump($stmt->execute());
16$db->close();
17?>
18--EXPECTF--
19object(SQLite3Result)#%d (0) {
20}
21