Skip to content

Commit 8786534

Browse files
committed
nulls
1 parent e3ef051 commit 8786534

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/enchant/enchant.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ PHP_FUNCTION(enchant_dict_remove_from_session)
714714
size_t wordlen;
715715
const enchant_dict *pdict;
716716

717-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os", &dict, enchant_dict_ce, &word, &wordlen) == FAILURE) {
717+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Op", &dict, enchant_dict_ce, &word, &wordlen) == FAILURE) {
718718
RETURN_THROWS();
719719
}
720720

ext/enchant/tests/null_bytes.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ $two_params_dict = [
2525
"enchant_dict_suggest",
2626
"enchant_dict_add",
2727
"enchant_dict_add_to_session",
28+
"enchant_dict_remove_from_session",
2829
"enchant_dict_is_added",
2930
];
3031

@@ -65,6 +66,7 @@ enchant_dict_check(): Argument #2 ($word) must not contain any null bytes
6566
enchant_dict_suggest(): Argument #2 ($word) must not contain any null bytes
6667
enchant_dict_add(): Argument #2 ($word) must not contain any null bytes
6768
enchant_dict_add_to_session(): Argument #2 ($word) must not contain any null bytes
69+
enchant_dict_remove_from_session(): Argument #2 ($word) must not contain any null bytes
6870
enchant_dict_is_added(): Argument #2 ($word) must not contain any null bytes
6971
enchant_broker_set_ordering(): Argument #2 ($tag) must not contain any null bytes
7072
enchant_dict_store_replacement(): Argument #2 ($misspelled) must not contain any null bytes

0 commit comments

Comments
 (0)