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 b9473aa commit 12c30e4Copy full SHA for 12c30e4
ext/enchant/enchant.c
@@ -506,6 +506,8 @@ PHP_FUNCTION(enchant_broker_request_dict)
506
dict = Z_ENCHANT_DICT_P(return_value);
507
dict->pdict =pdict;
508
ZVAL_COPY(&dict->zbroker, broker);
509
+ } else if (getThis()) {
510
+ zend_throw_exception(spl_ce_RuntimeException, "Can't create a new EnchantDict", 0);
511
} else {
512
RETURN_FALSE;
513
}
@@ -584,6 +586,8 @@ PHP_FUNCTION(enchant_broker_request_pwl_dict)
584
586
585
587
dict->pdict = pdict;
588
589
590
591
592
593
0 commit comments