From 474035fd75e83afbce49669e95d9797e46132425 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 22 Mar 2008 16:15:33 +0000 Subject: [PATCH] add PREG_BAD_UTF8_OFFSET_ERROR git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@255789 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pcre/constants.xml | 11 ++++++++++- reference/pcre/functions/preg-last-error.xml | 3 ++- 2 files changed, 12 insertions(+), 2 deletions(-) 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)