@@ -346,13 +346,11 @@ PHP_FUNCTION(enchant_broker_get_error)
346346}
347347/* }}} */
348348
349- #if HAVE_ENCHANT_BROKER_SET_PARAM
350349/* {{{ proto bool enchant_broker_set_dict_path(resource broker, int dict_type, string value)
351350 Set the directory path for a given backend, works with ispell and myspell */
352351PHP_FUNCTION (enchant_broker_set_dict_path )
353352{
354353 zval * broker ;
355- enchant_broker * pbroker ;
356354 zend_long dict_type ;
357355 char * value ;
358356 size_t value_len ;
@@ -361,6 +359,8 @@ PHP_FUNCTION(enchant_broker_set_dict_path)
361359 RETURN_THROWS ();
362360 }
363361
362+ #if HAVE_ENCHANT_BROKER_SET_PARAM
363+ enchant_broker * pbroker ;
364364 if (!value_len ) {
365365 RETURN_FALSE ;
366366 }
@@ -383,6 +383,7 @@ PHP_FUNCTION(enchant_broker_set_dict_path)
383383 default :
384384 RETURN_FALSE ;
385385 }
386+ #endif
386387}
387388/* }}} */
388389
@@ -392,14 +393,15 @@ PHP_FUNCTION(enchant_broker_set_dict_path)
392393PHP_FUNCTION (enchant_broker_get_dict_path )
393394{
394395 zval * broker ;
395- enchant_broker * pbroker ;
396396 zend_long dict_type ;
397- char * value ;
398397
399398 if (zend_parse_parameters (ZEND_NUM_ARGS (), "Ol" , & broker , enchant_broker_ce , & dict_type ) == FAILURE ) {
400399 RETURN_THROWS ();
401400 }
402401
402+ #if HAVE_ENCHANT_BROKER_SET_PARAM
403+ enchant_broker * pbroker ;
404+ char * value ;
403405 PHP_ENCHANT_GET_BROKER ;
404406
405407 switch (dict_type ) {
@@ -423,26 +425,9 @@ PHP_FUNCTION(enchant_broker_get_dict_path)
423425 }
424426
425427 RETURN_STRING (value );
428+ #endif
426429}
427430/* }}} */
428- #else
429- /* {{{ proto bool enchant_broker_set_dict_path(resource broker, int dict_type, string value)
430- Set the directory path for a given backend, works with ispell and myspell */
431- PHP_FUNCTION (enchant_broker_set_dict_path )
432- {
433- RETURN_FALSE ;
434- }
435- /* }}} */
436-
437-
438- /* {{{ proto string enchant_broker_get_dict_path(resource broker, int dict_type)
439- Get the directory path for a given backend, works with ispell and myspell */
440- PHP_FUNCTION (enchant_broker_get_dict_path )
441- {
442- RETURN_FALSE ;
443- }
444- /* }}} */
445- #endif
446431
447432/* {{{ proto array enchant_broker_list_dicts(resource broker)
448433 Lists the dictionaries available for the given broker */
0 commit comments