1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext/sqlite3/tests/bug72571.phpt

22 lines
363 B
PHP

--TEST--
Bug #72571 (SQLite3::bindValue, SQLite3::bindParam crash)
--SKIPIF--
<?php
if (!extension_loaded('sqlite3')) die('skip'); ?>
--FILE--
<?php
$db = new SQLite3(':memory:');
$stmt = $db->prepare("select 1 = ?");
// bindParam crash
$i = 0;
$stmt->bindParam(0, $i);
var_dump($stmt->execute());
$db->close();
?>
--EXPECTF--
object(SQLite3Result)#%d (0) {
}