ru_php/ext/enchant/tests/bug53070.phpt

29 lines
883 B
PHP

--TEST--
Bug #53070 (enchant_broker_get_path crashes if no path is set)
--EXTENSIONS--
enchant
--SKIPIF--
<?php
if (defined("LIBENCHANT_VERSION") && version_compare(LIBENCHANT_VERSION, "2", ">")) die('skip libenchant v1 only');
?>
--FILE--
<?php
$broker = enchant_broker_init();
var_dump(enchant_broker_get_dict_path($broker, ENCHANT_MYSPELL));
var_dump(enchant_broker_get_dict_path($broker, ENCHANT_ISPELL));
?>
--EXPECTF--
Deprecated: Constant ENCHANT_MYSPELL is deprecated in %s
Deprecated: Function enchant_broker_get_dict_path() is deprecated since 8.0 in %s
Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
bool(false)
Deprecated: Constant ENCHANT_ISPELL is deprecated in %s
Deprecated: Function enchant_broker_get_dict_path() is deprecated since 8.0 in %s
Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
bool(false)