From 9b55be870ca31a6e4c8a054097ffd22e5351bf42 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 29 Jan 2012 03:57:29 +0000 Subject: Good patch from Brad Dewar that adds missing createCollation() method. Fixes bug #60871 and is related to bug #55226 --- ext/sqlite3/php_sqlite3_structs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext/sqlite3/php_sqlite3_structs.h') diff --git a/ext/sqlite3/php_sqlite3_structs.h b/ext/sqlite3/php_sqlite3_structs.h index 3e9a16f248..863365b4d8 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; -- cgit v1.2.1