From a657bdcaf40c977320d4afcc164a0ecf5b3c30a2 Mon Sep 17 00:00:00 2001 From: Sherif Ramadan Date: Mon, 30 Jul 2012 03:37:52 +0000 Subject: [PATCH] Modified ambiguous wording for return values and added return.falseproblem warning. This fixes Bug #62161 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326871 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/functions/preg-match.xml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/reference/pcre/functions/preg-match.xml b/reference/pcre/functions/preg-match.xml index 2f012fe1d0..b95df00939 100644 --- a/reference/pcre/functions/preg-match.xml +++ b/reference/pcre/functions/preg-match.xml @@ -153,14 +153,11 @@ Array &reftitle.returnvalues; - preg_match returns the number of times - pattern matches. That will be either 0 times - (no match) or 1 time because preg_match will stop - searching after the first match. preg_match_all - on the contrary will continue until it reaches the end of - subject. - preg_match returns &false; if an error occurred. + preg_match returns 1 if the pattern + matches given subject, 0 if it does not, or &false; + if an error occurred. + &return.falseproblem;