preg_grep returns false when pattern cannot be compiled

This commit is contained in:
Markus Staab 2020-06-11 16:06:33 +02:00 committed by Ivan Fedorov
parent 7a800c4176
commit f81ae2c241
1 changed files with 2 additions and 2 deletions

View File

@ -464,8 +464,8 @@ function preg_quote ($str, $delimiter = null) {}
* the elements of the input array that do not match
* the given <i>pattern</i>.
* </p>
* @return array an array indexed using the keys from the
* <i>input</i> array.
* @return array|false an array indexed using the keys from the
* <i>input</i> array or false when pattern cannot be compiled.
*/
function preg_grep ($pattern, array $input, $flags = 0) {}