1--TEST-- 2Bug #53070 (enchant_broker_get_path crashes if no path is set) 3--EXTENSIONS-- 4enchant 5--SKIPIF-- 6<?php 7if (!is_object(enchant_broker_init())) {die("skip, resource dont load\n");} 8if (defined("LIBENCHANT_VERSION") && version_compare(LIBENCHANT_VERSION, "2", ">")) die('skip libenchant v1 only'); 9?> 10--FILE-- 11<?php 12$broker = enchant_broker_init(); 13var_dump(enchant_broker_get_dict_path($broker, ENCHANT_MYSPELL)); 14var_dump(enchant_broker_get_dict_path($broker, ENCHANT_ISPELL)); 15?> 16--EXPECTF-- 17Deprecated: Constant ENCHANT_MYSPELL is deprecated in %s 18 19Deprecated: Function enchant_broker_get_dict_path() is deprecated in %s 20 21Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d 22bool(false) 23 24Deprecated: Constant ENCHANT_ISPELL is deprecated in %s 25 26Deprecated: Function enchant_broker_get_dict_path() is deprecated in %s 27 28Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d 29bool(false) 30