version 1.1.1.1, 2012/02/21 23:47:54
|
version 1.1.1.2, 2012/05/29 12:34:37
|
Line 124 ZEND_END_ARG_INFO()
|
Line 124 ZEND_END_ARG_INFO()
|
* |
* |
* Every user visible function must have an entry in enchant_functions[]. |
* Every user visible function must have an entry in enchant_functions[]. |
*/ |
*/ |
function_entry enchant_functions[] = { | zend_function_entry enchant_functions[] = { |
PHP_FE(enchant_broker_init, arginfo_enchant_broker_init) |
PHP_FE(enchant_broker_init, arginfo_enchant_broker_init) |
PHP_FE(enchant_broker_free, arginfo_enchant_broker_free) |
PHP_FE(enchant_broker_free, arginfo_enchant_broker_free) |
PHP_FE(enchant_broker_get_error, arginfo_enchant_broker_free) |
PHP_FE(enchant_broker_get_error, arginfo_enchant_broker_free) |
Line 244 static void php_enchant_broker_free(zend_rsrc_list_ent
|
Line 244 static void php_enchant_broker_free(zend_rsrc_list_ent
|
if (broker->pbroker) { |
if (broker->pbroker) { |
if (broker->dictcnt && broker->dict) { |
if (broker->dictcnt && broker->dict) { |
if (broker->dict) { |
if (broker->dict) { |
int total, tofree; | int total; |
tofree = total = broker->dictcnt-1; | total = broker->dictcnt-1; |
do { |
do { |
zend_list_delete(broker->dict[total]->rsrc_id); |
zend_list_delete(broker->dict[total]->rsrc_id); |
efree(broker->dict[total]); |
efree(broker->dict[total]); |
Line 326 PHP_MINFO_FUNCTION(enchant)
|
Line 326 PHP_MINFO_FUNCTION(enchant)
|
#elif defined(HAVE_ENCHANT_BROKER_SET_PARAM) |
#elif defined(HAVE_ENCHANT_BROKER_SET_PARAM) |
php_info_print_table_row(2, "Libenchant Version", "1.5.0 or later"); |
php_info_print_table_row(2, "Libenchant Version", "1.5.0 or later"); |
#endif |
#endif |
php_info_print_table_row(2, "Revision", "$Revision$"); | php_info_print_table_row(2, "Revision", "$Id$"); |
php_info_print_table_end(); |
php_info_print_table_end(); |
|
|
php_info_print_table_start(); |
php_info_print_table_start(); |
Line 357 PHP_FUNCTION(enchant_broker_init)
|
Line 357 PHP_FUNCTION(enchant_broker_init)
|
enchant_broker *broker; |
enchant_broker *broker; |
EnchantBroker *pbroker; |
EnchantBroker *pbroker; |
|
|
if (ZEND_NUM_ARGS()) { | if (zend_parse_parameters_none() == FAILURE) { |
ZEND_WRONG_PARAM_COUNT(); | return; |
} |
} |
|
|
pbroker = enchant_broker_init(); |
pbroker = enchant_broker_init(); |
Line 542 PHP_FUNCTION(enchant_broker_request_dict)
|
Line 542 PHP_FUNCTION(enchant_broker_request_dict)
|
} |
} |
|
|
PHP_ENCHANT_GET_BROKER; |
PHP_ENCHANT_GET_BROKER; |
|
|
|
if (taglen == 0) { |
|
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Tag cannot be empty"); |
|
RETURN_FALSE; |
|
} |
|
|
d = enchant_broker_request_dict(pbroker->pbroker, (const char *)tag); |
d = enchant_broker_request_dict(pbroker->pbroker, (const char *)tag); |
if (d) { |
if (d) { |
Line 586 PHP_FUNCTION(enchant_broker_request_pwl_dict)
|
Line 591 PHP_FUNCTION(enchant_broker_request_pwl_dict)
|
int pwllen; |
int pwllen; |
int pos; |
int pos; |
|
|
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &broker, &pwl, &pwllen) == FAILURE) { | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rp", &broker, &pwl, &pwllen) == FAILURE) { |
RETURN_FALSE; | |
} | |
| |
if (strlen(pwl) != pwllen) { | |
RETURN_FALSE; |
RETURN_FALSE; |
} |
} |
|
|