summaryrefslogtreecommitdiff
path: root/ext/sqlite/tests/sqlite_exec_error.phpt
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2010-11-19 09:55:48 +0000
committerJohannes Schlüter <johannes@php.net>2010-11-19 09:55:48 +0000
commit6c76f3606cddeb010cf1fc5ea28b47456ea9639e (patch)
tree73c1b306cd449f571f2b28793cfac1de673b7fad /ext/sqlite/tests/sqlite_exec_error.phpt
parent4cc45507da8164847708c26bfdf0840419a166fc (diff)
downloadphp-git-6c76f3606cddeb010cf1fc5ea28b47456ea9639e.tar.gz
- Move the old sqlite extension to PECL
# discussed in http://www.mail-archive.com/internals@lists.php.net/msg47463.html
Diffstat (limited to 'ext/sqlite/tests/sqlite_exec_error.phpt')
-rw-r--r--ext/sqlite/tests/sqlite_exec_error.phpt44
1 files changed, 0 insertions, 44 deletions
diff --git a/ext/sqlite/tests/sqlite_exec_error.phpt b/ext/sqlite/tests/sqlite_exec_error.phpt
deleted file mode 100644
index 74cfa9a3e8..0000000000
--- a/ext/sqlite/tests/sqlite_exec_error.phpt
+++ /dev/null
@@ -1,44 +0,0 @@
---TEST--
-Test sqlite_exec() function : error behaviour and functionality
---SKIPIF--
-<?php if (!extension_loaded("sqlite")) print "skip sqlite extension not loaded"; ?>
---FILE--
-<?php
-/* Prototype : boolean sqlite_exec(string query, resource db[, string &error_message])
- * Description: Executes a result-less query against a given database
- * Source code: ext/sqlite/sqlite.c
- * Alias to functions:
- */
-
-echo "*** Testing sqlite_exec() : error functionality ***\n";
-
-// set up variables
-$fail = 'CRE ATE TABLE';
-$error_message = null;
-
-// procedural
-$db = sqlite_open(':memory:');
-var_dump( sqlite_exec($db, $fail, $error_message) );
-var_dump( $error_message );
-var_dump( sqlite_exec($db) );
-sqlite_close($db);
-
-// oo-style
-$db = new SQLiteDatabase(':memory:');
-var_dump( $db->queryExec($fail, $error_message, 'fooparam') );
-
-?>
-===DONE===
---EXPECTF--
-*** Testing sqlite_exec() : error functionality ***
-
-Warning: sqlite_exec(): near "CRE": syntax error in %s on line %d
-bool(false)
-%string|unicode%(24) "near "CRE": syntax error"
-
-Warning: sqlite_exec() expects at least 2 parameters, 1 given in %s on line %d
-NULL
-
-Warning: SQLiteDatabase::queryExec() expects at most 2 parameters, 3 given in %s on line %d
-NULL
-===DONE===