1--TEST--
2PDO::quote() must accept empty string for drivers which support this feature
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo')) die('skip');
6$dir = getenv('REDIR_TEST_DIR');
7if (false == $dir) die('skip no driver');
8require_once $dir . 'pdo_test.inc';
9PDOTest::skip();
10?>
11--FILE--
12<?php
13if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.__DIR__ . '/../../pdo/tests/');
14require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
15
16$pdo = PDOTest::factory();
17$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
18
19try {
20    $result = $pdo->quote('');
21    if (!is_string($result)) {
22        var_dump($result);
23    }
24} catch (\PDOException) {
25    // Do nothing as quoting is not supported with this driver
26}
27?>
28DONE
29
30--EXPECT--
31DONE
32