We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffff237 commit 1fb66b8Copy full SHA for 1fb66b8
ext/enchant/enchant.c
@@ -307,8 +307,8 @@ PHP_FUNCTION(enchant_broker_free)
307
PHP_ENCHANT_GET_BROKER;
308
309
if (pbroker->nb_dict > 0) {
310
- php_error_docref(NULL, E_WARNING, "Cannot free EnchantBroker object with open EnchantDictionary objects");
311
- RETURN_FALSE;
+ zend_throw_error(NULL, "Cannot free EnchantBroker object with open EnchantDictionary objects");
+ RETURN_THROWS();
312
}
313
if (pbroker->pbroker) {
314
enchant_broker_free(pbroker->pbroker);
0 commit comments