Skip to content

Commit c6bb747

Browse files
committed
Merge branch 'PHP-8.1'
* PHP-8.1: Fix ODBC test which may not properly clean up
2 parents 66eb96e + 0a9f552 commit c6bb747

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

ext/odbc/tests/odbc_exec_002.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ $res = odbc_exec($conn, 'SELECT * FROM FOO');
2323
var_dump(odbc_fetch_row($res));
2424
var_dump(odbc_result($res, 'test'));
2525
var_dump(odbc_fetch_array($res));
26-
26+
?>
27+
--CLEAN--
28+
<?php
29+
require 'config.inc';
30+
$conn = odbc_connect($dsn, $user, $pass);
2731
odbc_exec($conn, 'DROP TABLE FOO');
28-
2932
odbc_exec($conn, 'DROP DATABASE odbcTEST');
30-
3133
?>
3234
--EXPECT--
3335
bool(true)

ext/odbc/tests/odbc_free_result_001.phpt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ try {
3939
} catch (TypeError $e) {
4040
echo $e->getMessage(), "\n";
4141
}
42-
42+
?>
43+
--CLEAN--
44+
<?php
45+
require 'config.inc';
46+
$conn = odbc_connect($dsn, $user, $pass);
4347
odbc_exec($conn, 'DROP TABLE FOO');
44-
4548
odbc_exec($conn, 'DROP DATABASE odbcTEST');
46-
4749
?>
4850
--EXPECT--
4951
bool(true)

0 commit comments

Comments
 (0)