Skip to content

Commit 882023b

Browse files
committed
Update warning description, change default value in tests
When we're testing the error, change to match the updated description, when we're testing the default case, update from 0->1.
1 parent 20a6c42 commit 882023b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

ext/odbc/tests/odbc_fetch_array_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ odbc_exec($conn, 'INSERT INTO fetch_array VALUES (1), (2)');
1717
$res = odbc_exec($conn, 'SELECT * FROM fetch_array');
1818

1919
var_dump(odbc_fetch_array($res));
20-
var_dump(odbc_fetch_array($res, 0));
20+
var_dump(odbc_fetch_array($res));
2121
var_dump(odbc_fetch_array($res, 2));
2222
var_dump(odbc_fetch_array($res, 4));
2323

ext/odbc/tests/odbc_fetch_into_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $arr = [];
2020
var_dump(odbc_fetch_into($res, $arr));
2121
var_dump($arr);
2222
$arr = [];
23-
var_dump(odbc_fetch_into($res, $arr, 0));
23+
var_dump(odbc_fetch_into($res, $arr));
2424
var_dump($arr);
2525
$arr = [];
2626
var_dump(odbc_fetch_into($res, $arr, 2));

ext/odbc/tests/odbc_fetch_object_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ odbc_exec($conn, 'INSERT INTO fetch_object VALUES (1), (2)');
1717
$res = odbc_exec($conn, 'SELECT * FROM fetch_object');
1818

1919
var_dump(odbc_fetch_object($res));
20-
var_dump(odbc_fetch_object($res, 0));
20+
var_dump(odbc_fetch_object($res));
2121
var_dump(odbc_fetch_object($res, 2));
2222
var_dump(odbc_fetch_object($res, 4));
2323

ext/odbc/tests/odbc_fetch_row_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $conn = odbc_connect($dsn, $user, $pass);
4040
odbc_exec($conn, 'DROP TABLE fetch_row');
4141
?>
4242
--EXPECTF--
43-
Warning: odbc_fetch_row(): Argument #3 ($row) must be greater than or equal to 1 in %s on line %d
43+
Warning: odbc_fetch_row(): Last argument ($row) must be greater than or equal to 1 in %s on line %d
4444
bool(false)
4545
bool(true)
4646
string(1) "1"

0 commit comments

Comments
 (0)