xref: /PHP-8.0/ext/pdo_odbc/tests/bug67465.phpt (revision 6acfb792)
1--TEST--
2Bug #67465 (NULL Pointer dereference in odbc_handle_preparer)
3--SKIPIF--
4<?php
5if (!extension_loaded('pdo_odbc')) die('skip pdo_odbc extension not available');
6require 'ext/pdo/tests/pdo_test.inc';
7PDOTest::skip();
8?>
9--FILE--
10<?php
11require 'ext/pdo/tests/pdo_test.inc';
12$db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt');
13$db->prepare("SELECT 1", [PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL]);
14echo "done\n";
15?>
16--EXPECT--
17done
18