reference/pcre/functions/preg-last-error.xml
3c68e46cea928171d6de1afcae519e88f5949323
...
...
@@ -25,7 +25,7 @@
25
25
preg_match('/(?:\D+|<\d+>)*[!?]/', 'foobar foobar foobar');
26
26

27
27
if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) {
28
-
print 'Backtrack limit was exhausted!';
28
+
echo 'Backtrack limit was exhausted!';
29
29
}
30
30

31
31
?>
...
...
@@ -41,6 +41,11 @@ Backtrack limit was exhausted!
41
41
</para>
42
42
</refsect1>
43
43

44
+
<refsect1 role="parameters">
45
+
&reftitle.parameters;
46
+
&no.function.parameters;
47
+
</refsect1>
48
+
44
49
<refsect1 role="returnvalues">
45
50
&reftitle.returnvalues;
46
51
<para>
...
...
@@ -54,8 +59,17 @@ Backtrack limit was exhausted!
54
59
<member><constant>PREG_RECURSION_LIMIT_ERROR</constant> (see also <link
55
60
linkend="ini.pcre.recursion-limit">pcre.recursion_limit</link>)</member>
56
61
<member><constant>PREG_BAD_UTF8_ERROR</constant></member>
57
-
<member><constant>PREG_BAD_UTF8_OFFSET_ERROR</constant> (since PHP 5.3.0)</member>
58
-
<member><constant>PREG_JIT_STACKLIMIT_ERROR</constant> (since PHP 7.0.0)</member>
62
+
<member><constant>PREG_BAD_UTF8_OFFSET_ERROR</constant></member>
63
+
<member><constant>PREG_JIT_STACKLIMIT_ERROR</constant></member>
64
+
</simplelist>
65
+
</para>
66
+
</refsect1>
67
+

68
+
<refsect1 role="seealso">
69
+
&reftitle.seealso;
70
+
<para>
71
+
<simplelist>
72
+
<member><function>preg_last_error_msg</function></member>
59
73
</simplelist>
60
74
</para>
61
75
</refsect1>
62
76