Skip to content

Commit 1fb66b8

Browse files
committed
Promote warning to exception in ext/enchant
Closes GH-6022
1 parent ffff237 commit 1fb66b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/enchant/enchant.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ PHP_FUNCTION(enchant_broker_free)
307307
PHP_ENCHANT_GET_BROKER;
308308

309309
if (pbroker->nb_dict > 0) {
310-
php_error_docref(NULL, E_WARNING, "Cannot free EnchantBroker object with open EnchantDictionary objects");
311-
RETURN_FALSE;
310+
zend_throw_error(NULL, "Cannot free EnchantBroker object with open EnchantDictionary objects");
311+
RETURN_THROWS();
312312
}
313313
if (pbroker->pbroker) {
314314
enchant_broker_free(pbroker->pbroker);

0 commit comments

Comments
 (0)