mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
For rationale, see #6787 Extensions migrated in part 4: * simplexml * skeleton * soap * spl * sqlite3 * sysvmsg * sysvsem * tidy - also removed a check for an ancient dependency version
21 lines
461 B
PHP
21 lines
461 B
PHP
--TEST--
|
|
Bug #71049 (SQLite3Stmt::execute() releases bound parameter instead of internal buffer)
|
|
--EXTENSIONS--
|
|
sqlite3
|
|
--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!"
|