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/bug71049.phpt
Max Semenik 7f2f0c007c Migrate skip checks to --EXTENSIONS--, p4
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
2021-04-08 10:36:44 +02:00

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!"