xref: /PHP-7.0/ext/enchant/tests/bug53070.phpt (revision 5acb8381)
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--
15
16Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
17bool(false)
18
19Warning: enchant_broker_get_dict_path(): dict_path not set in %s on line %d
20bool(false)
21