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