Repository navigation
Fix enchant stub - #5500
Fix enchant stub#5500cmb69 wants to merge 1 commit into
Conversation
`enchant_broker_list_dicts()` and `enchant_broker_describe()` return `null` if no broker is available.
|
@remicollet, what do you think? |
|
Does it really return null? PHP_ENCHANT_GET_BROKER returns false if no broker available (it should throw instead). |
|
|
|
@cmb69 I see. In that case I'd say this definitely should array_init(return_value) beforehand. |
It's ok for PHP 8. |
|
I agree that the minor BC break would be acceptable for PHP 8, especially since this is only relevant if the extension is not really usable (i.e. has no brokers or dicts). On the other hand, I think sticking with Anyhow, @remicollet has incorporated this in PR #5528, so this PR can be closed. |
|
This issue does not seem related to the object migration, so it would be preferable to address it independently. |
|
Okay, makes sense. @remicollet, could you please revert these changes from PR #5528. |
|
Applied in c1ad916 |
enchant_broker_list_dicts()andenchant_broker_describe()returnnullif no broker is available.Alternatively, we could change the implementation to return an empty array in this case.