add PREG_BAD_UTF8_OFFSET_ERROR

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@255789 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Nuno Lopes 2008-03-22 16:15:33 +00:00
parent e839ed6d20
commit 474035fd75
2 changed files with 12 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.14 $ -->
<!-- $Revision: 1.15 $ -->
<appendix xml:id="pcre.constants" xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
&extension.constants;
@ -103,6 +103,15 @@
since PHP 5.2.0.
</entry>
</row>
<row>
<entry><constant>PREG_BAD_UTF8_OFFSET_ERROR</constant></entry>
<entry>
Returned by <function>preg_last_error</function> if the offset didn't
correspond to the begin of a valid UTF-8 code point (only when running
a regex in <link linkend="reference.pcre.pattern.modifiers">UTF-8
mode</link>). Available since PHP 5.3.0.
</entry>
</row>
<row>
<entry><constant>PCRE_VERSION</constant></entry>
<entry>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.6 $ -->
<!-- $Revision: 1.7 $ -->
<refentry xml:id="function.preg-last-error" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>preg_last_error</refname>
@ -54,6 +54,7 @@ Backtrack limit was exhausted!
<member><constant>PREG_RECURSION_LIMIT_ERROR</constant> (see also <link
linkend="ini.pcre.recursion-limit">pcre.recursion_limit</link>)</member>
<member><constant>PREG_BAD_UTF8_ERROR</constant></member>
<member><constant>PREG_BAD_UTF8_OFFSET_ERROR</constant></member> (since PHP 5.3.0)
</simplelist>
</para>
</refsect1>