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 (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()
489 struct pdo_sqlite_collation *collation = (struct pdo_sqlite_collation*) context; in php_sqlite3_collation_callback() local
492 collation->fc.fci.size = sizeof(collation->fc.fci); in php_sqlite3_collation_callback()
493 collation->fc.fci.function_table = EG(function_table); in php_sqlite3_collation_callback()
494 collation->fc.fci.function_name = collation->callback; in php_sqlite3_collation_callback()
495 collation->fc.fci.symbol_table = NULL; in php_sqlite3_collation_callback()
496 collation->fc.fci.object_ptr = NULL; in php_sqlite3_collation_callback()
497 collation->fc.fci.retval_ptr_ptr = &retval; in php_sqlite3_collation_callback()
506 collation->fc.fci.param_count = 2; in php_sqlite3_collation_callback()
507 collation->fc.fci.params = zargs; in php_sqlite3_collation_callback()
509 if ((ret = zend_call_function(&collation->fc.fci, &collation->fc.fcc TSRMLS_CC)) == FAILURE) { in php_sqlite3_collation_callback()
670 struct pdo_sqlite_collation *collation; in PHP_METHOD() local
696 collation = (struct pdo_sqlite_collation*)ecalloc(1, sizeof(*collation)); in PHP_METHOD()
698 …ret = sqlite3_create_collation(H->db, collation_name, SQLITE_UTF8, collation, php_sqlite3_collatio… in PHP_METHOD()
700 collation->name = estrdup(collation_name); in PHP_METHOD()
702 MAKE_STD_ZVAL(collation->callback); in PHP_METHOD()
703 MAKE_COPY_ZVAL(&callback, collation->callback); in PHP_METHOD()
705 collation->next = H->collations; in PHP_METHOD()
706 H->collations = collation; in PHP_METHOD()
711 efree(collation); in PHP_METHOD()