--TEST-- null bytes --EXTENSIONS-- enchant --SKIPIF-- --FILE-- getMessage(), "\n"; } } foreach ($two_params_dict as $func) { try { $func($requestDict, "foo\0bar"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } } try { var_dump(enchant_broker_set_ordering($broker, "foo\0bar", "foo\0bar")); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } try { var_dump(enchant_dict_store_replacement($requestDict, "foo\0bar", "foo\0bar")); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- enchant_broker_request_dict(): Argument #2 ($tag) must not contain any null bytes enchant_broker_dict_exists(): Argument #2 ($tag) must not contain any null bytes enchant_dict_quick_check(): Argument #2 ($word) must not contain any null bytes enchant_dict_check(): Argument #2 ($word) must not contain any null bytes enchant_dict_suggest(): Argument #2 ($word) must not contain any null bytes enchant_dict_add(): Argument #2 ($word) must not contain any null bytes enchant_dict_add_to_session(): Argument #2 ($word) must not contain any null bytes enchant_dict_is_added(): Argument #2 ($word) must not contain any null bytes enchant_broker_set_ordering(): Argument #2 ($tag) must not contain any null bytes enchant_dict_store_replacement(): Argument #2 ($misspelled) must not contain any null bytes