Skip to content

Commit c26003d

Browse files
committed
ext/pdo_dblib: Remove bool type coercions in tests
1 parent 56b0567 commit c26003d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

ext/pdo_dblib/tests/pdo_dblib_quote.phpt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ getDbConnection();
1111
<?php
1212
require __DIR__ . '/config.inc';
1313
$db = getDbConnection();
14-
var_dump($db->quote(true, PDO::PARAM_BOOL));
15-
var_dump($db->quote(false, PDO::PARAM_BOOL));
1614
var_dump($db->quote(42, PDO::PARAM_INT));
17-
var_dump($db->quote(null, PDO::PARAM_NULL));
1815
var_dump($db->quote('\'', PDO::PARAM_STR));
1916
var_dump($db->quote('foo', PDO::PARAM_STR));
2017
var_dump($db->quote('foo', PDO::PARAM_STR | PDO::PARAM_STR_CHAR));
@@ -32,13 +29,8 @@ $db = getDbConnection(PDO::class, [PDO::ATTR_DEFAULT_STR_PARAM => PDO::PARAM_STR
3229
var_dump($db->getAttribute(PDO::ATTR_DEFAULT_STR_PARAM) === PDO::PARAM_STR_NATL);
3330

3431
?>
35-
--EXPECTF--
36-
string(3) "'1'"
37-
string(2) "''"
32+
--EXPECT--
3833
string(4) "'42'"
39-
40-
Deprecated: PDO::quote(): Passing null to parameter #1 ($string) of type string is deprecated in %s on line %d
41-
string(2) "''"
4234
string(4) "''''"
4335
string(5) "'foo'"
4436
string(5) "'foo'"

0 commit comments

Comments
 (0)