1--TEST-- 2Bug #71049 (SQLite3Stmt::execute() releases bound parameter instead of internal buffer) 3--SKIPIF-- 4<?php 5if (!extension_loaded('sqlite3')) die('skip'); ?> 6--FILE-- 7<?php 8 9require(__DIR__ . '/new_db.inc'); 10 11$db->exec('CREATE TABLE test (age INTEGER, id STRING)'); 12 13$stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC"); 14$foo = "alive" . chr(33); 15$stmt->bindParam(1, $foo, SQLITE3_BLOB); 16$results = $stmt->execute(); 17var_dump($foo); 18$db->close(); 19?> 20--EXPECT-- 21string(6) "alive!" 22