xref: /PHP-7.1/ext/enchant/tests/bug53070.phpt (revision 113213f0)
1--TEST--
2Bug #53070 (enchant_broker_get_path crashes if no path is set)
3--SKIPIF--
4<?php
5if(!extension_loaded('enchant')) die('skip, enchant not loader');
6if (!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");}
7?>
8--FILE--
9<?php
10$broker = enchant_broker_init();
11var_dump(enchant_broker_get_dict_path($broker, ENCHANT_MYSPELL));
12var_dump(enchant_broker_get_dict_path($broker, ENCHANT_ISPELL));
13?>
14--EXPECTF--
15Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
16bool(false)
17
18Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
19bool(false)
20