summaryrefslogtreecommitdiff
path: root/ext/sqlite3/php_sqlite3_structs.h
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2012-01-29 03:57:29 (GMT)
committerRasmus Lerdorf <rasmus@php.net>2012-01-29 03:57:29 (GMT)
commit9b55be870ca31a6e4c8a054097ffd22e5351bf42 (patch)
tree261cf988c689f121319ce99b1f3b2b928f65c64c /ext/sqlite3/php_sqlite3_structs.h
parenta2ce8b3f9734fcd492b284f107d92e48deceae7c (diff)
downloadphp-9b55be870ca31a6e4c8a054097ffd22e5351bf42.tar.gz
Good patch from Brad Dewar that adds missing createCollation()
method. Fixes bug #60871 and is related to bug #55226
Diffstat (limited to 'ext/sqlite3/php_sqlite3_structs.h')
-rw-r--r--ext/sqlite3/php_sqlite3_structs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h
index 3e9a16f..863365b 100644
--- a/ext/sqlite3/php_sqlite3_structs.h
+++ b/ext/sqlite3/php_sqlite3_structs.h
@@ -62,12 +62,23 @@ typedef struct _php_sqlite3_func {
struct php_sqlite3_fci afunc, astep, afini;
} php_sqlite3_func;
+/* Structure for SQLite collation function */
+typedef struct _php_sqlite3_collation {
+ struct _php_sqlite3_collation *next;
+
+ const char *collation_name;
+ zval *cmp_func;
+ struct php_sqlite3_fci fci;
+} php_sqlite3_collation;
+
/* Structure for SQLite Database object. */
typedef struct _php_sqlite3_db_object {
zend_object zo;
int initialised;
sqlite3 *db;
php_sqlite3_func *funcs;
+ php_sqlite3_collation *collations;
+
zend_bool exception;
zend_llist free_list;