mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Generalises tests for all the different drivers. Run the general test for the various drivers. This allows support for parallel testing as the tests now do not rely on the same DB file.
43 lines
690 B
PHP
43 lines
690 B
PHP
--TEST--
|
|
Bug #65708 (dba functions cast $key param to string in-place, bypassing copy on write)
|
|
--EXTENSIONS--
|
|
dba
|
|
--SKIPIF--
|
|
<?php
|
|
require_once __DIR__ . '/setup/setup_dba_tests.inc';
|
|
check_skip_any();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . '/setup/setup_dba_tests.inc';
|
|
$name = 'bug65708.db';
|
|
|
|
$db = get_any_db($name);
|
|
|
|
$key = 1;
|
|
$copy = $key;
|
|
|
|
echo gettype($key)."\n";
|
|
echo gettype($copy)."\n";
|
|
|
|
dba_exists($key, $db);
|
|
|
|
echo gettype($key)."\n";
|
|
echo gettype($copy)."\n";
|
|
|
|
dba_close($db);
|
|
|
|
?>
|
|
--CLEAN--
|
|
<?php
|
|
require_once __DIR__ . '/setup/setup_dba_tests.inc';
|
|
$db_name = 'bug65708.db';
|
|
cleanup_standard_db($db_name);
|
|
?>
|
|
--EXPECTF--
|
|
Using handler: "%s"
|
|
integer
|
|
integer
|
|
integer
|
|
integer
|