1--TEST--
2str_word_count() and invalid arguments
3--FILE--
4<?php
5
6var_dump(str_word_count(""));
7var_dump(str_word_count("", -1));
8var_dump(str_word_count("", -1, $a));
9var_dump($a);
10
11echo "Done\n";
12?>
13--EXPECTF--
14int(0)
15
16Warning: str_word_count(): Invalid format value -1 in %s on line %d
17bool(false)
18
19Notice: Undefined variable: a in %s on line %d
20
21Warning: str_word_count(): Invalid format value -1 in %s on line %d
22bool(false)
23
24Notice: Undefined variable: a in %s on line %d
25NULL
26Done
27