diff --git a/reference/pcre/constants.xml b/reference/pcre/constants.xml index 28b1632d37..a97a672004 100644 --- a/reference/pcre/constants.xml +++ b/reference/pcre/constants.xml @@ -1,5 +1,5 @@ - + &reftitle.constants; &extension.constants; @@ -103,6 +103,15 @@ since PHP 5.2.0. + + PREG_BAD_UTF8_OFFSET_ERROR + + Returned by preg_last_error if the offset didn't + correspond to the begin of a valid UTF-8 code point (only when running + a regex in UTF-8 + mode). Available since PHP 5.3.0. + + PCRE_VERSION diff --git a/reference/pcre/functions/preg-last-error.xml b/reference/pcre/functions/preg-last-error.xml index e1bcb6a2bb..b29ecdaff3 100644 --- a/reference/pcre/functions/preg-last-error.xml +++ b/reference/pcre/functions/preg-last-error.xml @@ -1,5 +1,5 @@ - + preg_last_error @@ -54,6 +54,7 @@ Backtrack limit was exhausted! PREG_RECURSION_LIMIT_ERROR (see also pcre.recursion_limit) PREG_BAD_UTF8_ERROR + PREG_BAD_UTF8_OFFSET_ERROR (since PHP 5.3.0)