cvs: php-src /ext/sqlite/tests bug28112.phpt
| From: | Marcus Boerger | Date: | Thu, 22 Apr 2004 22:29:42 +0000 |
| Subject: | cvs: php-src /ext/sqlite/tests bug28112.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-27152@lists.php.net to get a copy of this message | ||
helly Thu Apr 22 18:29:42 2004 EDT
Added files:
/php-src/ext/sqlite/tests bug28112.phpt
Log:
Add test for bug #28112
http://cvs.php.net/co.php/php-src/ext/sqlite/tests/bug28112.phpt?r=1.1&p=1
Index: php-src/ext/sqlite/tests/bug28112.phpt
+++ php-src/ext/sqlite/tests/bug28112.phpt
--TEST--
#28112 (sqlite_query() crashing apache on malformed query)
--FILE--
<?php
if (!($db = sqlite_open(":memory:", 666, $error))) die ("Couldn't open the
database");
sqlite_query($db, "create table frob (foo INTEGER PRIMARY KEY, bar text);");
$res = sqlite_array_query($db, "");
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
===DONE===