Lines Matching refs:collation

134 		struct pdo_sqlite_collation *collation;  in pdo_sqlite_cleanup_callbacks()  local
135 collation = H->collations; in pdo_sqlite_cleanup_callbacks()
136 H->collations = collation->next; in pdo_sqlite_cleanup_callbacks()
141 collation->name, in pdo_sqlite_cleanup_callbacks()
143 collation, in pdo_sqlite_cleanup_callbacks()
147 efree((char*)collation->name); in pdo_sqlite_cleanup_callbacks()
148 if (!Z_ISUNDEF(collation->callback)) { in pdo_sqlite_cleanup_callbacks()
149 zval_ptr_dtor(&collation->callback); in pdo_sqlite_cleanup_callbacks()
151 efree(collation); in pdo_sqlite_cleanup_callbacks()
476 struct pdo_sqlite_collation *collation = (struct pdo_sqlite_collation*) context; in php_sqlite3_collation_callback() local
478 collation->fc.fci.size = sizeof(collation->fc.fci); in php_sqlite3_collation_callback()
479 collation->fc.fci.function_table = EG(function_table); in php_sqlite3_collation_callback()
480 ZVAL_COPY_VALUE(&collation->fc.fci.function_name, &collation->callback); in php_sqlite3_collation_callback()
481 collation->fc.fci.symbol_table = NULL; in php_sqlite3_collation_callback()
482 collation->fc.fci.object = NULL; in php_sqlite3_collation_callback()
483 collation->fc.fci.retval = &retval; in php_sqlite3_collation_callback()
488 collation->fc.fci.param_count = 2; in php_sqlite3_collation_callback()
489 collation->fc.fci.params = zargs; in php_sqlite3_collation_callback()
491 if ((ret = zend_call_function(&collation->fc.fci, &collation->fc.fcc)) == FAILURE) { in php_sqlite3_collation_callback()
647 struct pdo_sqlite_collation *collation; in PHP_METHOD() local
673 collation = (struct pdo_sqlite_collation*)ecalloc(1, sizeof(*collation)); in PHP_METHOD()
675 …ret = sqlite3_create_collation(H->db, collation_name, SQLITE_UTF8, collation, php_sqlite3_collatio… in PHP_METHOD()
677 collation->name = estrdup(collation_name); in PHP_METHOD()
679 ZVAL_COPY(&collation->callback, callback); in PHP_METHOD()
681 collation->next = H->collations; in PHP_METHOD()
682 H->collations = collation; in PHP_METHOD()
687 efree(collation); in PHP_METHOD()