--- embedaddon/php/ext/sqlite3/php_sqlite3_structs.h 2012/02/21 23:48:02 1.1 +++ embedaddon/php/ext/sqlite3/php_sqlite3_structs.h 2014/06/15 20:03:56 1.1.1.5 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2012 The PHP Group | + | Copyright (c) 1997-2014 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,14 +16,14 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sqlite3_structs.h,v 1.1 2012/02/21 23:48:02 misho Exp $ */ +/* $Id: php_sqlite3_structs.h,v 1.1.1.5 2014/06/15 20:03:56 misho Exp $ */ #ifndef PHP_SQLITE_STRUCTS_H #define PHP_SQLITE_STRUCTS_H #include -/* for backwards compatability reasons */ +/* for backwards compatibility reasons */ #ifndef SQLITE_OPEN_READONLY #define SQLITE_OPEN_READONLY 0x00000001 #endif @@ -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;