]> granicus.if.org Git - php/commitdiff
add new test
authorAntony Dovgal <tony2001@php.net>
Sun, 10 Sep 2006 19:42:04 +0000 (19:42 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 10 Sep 2006 19:42:04 +0000 (19:42 +0000)
ext/sqlite/tests/bug38759.phpt [new file with mode: 0644]

diff --git a/ext/sqlite/tests/bug38759.phpt b/ext/sqlite/tests/bug38759.phpt
new file mode 100644 (file)
index 0000000..ae5959d
--- /dev/null
@@ -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