xref: /PHP-5.3/ext/sqlite/tests/bug38759.phpt (revision 4dd2a598)
1--TEST--
2Bug #38759 (sqlite2 empty query causes segfault)
3--SKIPIF--
4<?php
5if (!extension_loaded("pdo")) print "skip";
6if (!extension_loaded("sqlite")) print "skip";
7?>
8--FILE--
9<?php
10
11$dbh = new PDO('sqlite2::memory:');
12var_dump($dbh->query(" "));
13
14echo "Done\n";
15?>
16--EXPECTF--
17bool(false)
18Done
19