mirror of
https://github.com/php/php-src.git
synced 2026-10-28 17:56:50 +08:00
- Added SKIPIF sections for tests that use Pdo\Sqlite::DETERMINISTIC as it is available since libsqlite 3.8.3. - Removed outdated SKIPIF sections for libsqlite versions 3.7.4 When using libsqlite 3.7.17 there are two more failing tests due to different warning messages: - ext/sqlite3/tests/sqlite3_38_extended_error.phpt - ext/sqlite3/tests/sqlite3_39_toggleExtended.phpt This fix doesn't address these as minimum required libsqlite will be updated in the future PHP versions anyway at some point and this won't be an issue anymore then.
20 lines
399 B
PHP
20 lines
399 B
PHP
--TEST--
|
|
SQLite3_stmt::busy
|
|
--EXTENSIONS--
|
|
sqlite3
|
|
--FILE--
|
|
<?php
|
|
|
|
require_once(__DIR__ . '/new_db.inc');
|
|
$db->exec('CREATE TABLE test_busy (a string);');
|
|
$db->exec("INSERT INTO test_busy VALUES ('interleaved'), ('statements')");
|
|
$st = $db->prepare('SELECT a FROM test_busy');
|
|
var_dump($st->busy());
|
|
$r = $st->execute();
|
|
$r->fetchArray();
|
|
var_dump($st->busy());
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|