mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
22 lines
505 B
PHP
22 lines
505 B
PHP
--TEST--
|
|
Bug #71049 (SQLite3Stmt::execute() releases bound parameter instead of internal buffer)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('sqlite3')) die('skip'); ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
require(__DIR__ . '/new_db.inc');
|
|
|
|
$db->exec('CREATE TABLE test (age INTEGER, id STRING)');
|
|
|
|
$stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC");
|
|
$foo = "alive" . chr(33);
|
|
$stmt->bindParam(1, $foo, SQLITE3_BLOB);
|
|
$results = $stmt->execute();
|
|
var_dump($foo);
|
|
$db->close();
|
|
?>
|
|
--EXPECT--
|
|
string(6) "alive!"
|