mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
add new test
This commit is contained in:
parent
9dceb42867
commit
9d29a1b26d
1 changed files with 18 additions and 0 deletions
18
ext/sqlite/tests/bug38759.phpt
Normal file
18
ext/sqlite/tests/bug38759.phpt
Normal file
|
@ -0,0 +1,18 @@
|
|||
--TEST--
|
||||
Bug #38759 (sqlite2 empty query causes segfault)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded("pdo")) print "skip";
|
||||
if (!extension_loaded("sqlite")) print "skip";
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
$dbh = new PDO('sqlite2::memory:');
|
||||
var_dump($dbh->query(" "));
|
||||
|
||||
echo "Done\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
bool(false)
|
||||
Done
|
Loading…
Add table
Add a link
Reference in a new issue