diff options
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_prepare_with_empty_string.phpt')
-rw-r--r-- | ext/sqlite3/tests/sqlite3_prepare_with_empty_string.phpt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/sqlite3_prepare_with_empty_string.phpt b/ext/sqlite3/tests/sqlite3_prepare_with_empty_string.phpt new file mode 100644 index 0000000..dea7d91 --- /dev/null +++ b/ext/sqlite3/tests/sqlite3_prepare_with_empty_string.phpt @@ -0,0 +1,16 @@ +--TEST-- +SQLite3::prepare test with empty string argument +--CREDITS-- +Thijs Feryn <thijs@feryn.eu> +#TestFest PHPBelgium 2009 +--SKIPIF-- +<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> +--FILE-- +<?php +$db = new SQLite3(':memory:'); +var_dump($db->prepare('')); +echo "Done\n"; +?> +--EXPECTF-- +bool(false) +Done |