diff options
author | Antony Dovgal <tony2001@php.net> | 2006-09-10 19:42:12 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-09-10 19:42:12 +0000 |
commit | 4dd2a598f36ec21db31cc695cb5a2286e482e7db (patch) | |
tree | b275751dd6a1d2acfb33b0d6bd001a5a39c87d35 /ext/sqlite/tests | |
parent | 0ce31d14f508c2e2975c9b85586964120abc48fb (diff) | |
download | php-git-4dd2a598f36ec21db31cc695cb5a2286e482e7db.tar.gz |
add new test
Diffstat (limited to 'ext/sqlite/tests')
-rw-r--r-- | ext/sqlite/tests/bug38759.phpt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/sqlite/tests/bug38759.phpt b/ext/sqlite/tests/bug38759.phpt new file mode 100644 index 0000000000..ae5959d4bd --- /dev/null +++ b/ext/sqlite/tests/bug38759.phpt @@ -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 |