From aa79a22d32f31dbc5343f8191e925aa07447c3ec Mon Sep 17 00:00:00 2001 From: Nicolas Oelgart Date: Mon, 17 Feb 2020 14:29:12 +0100 Subject: Add preg_last_error_msg() function Provides the last PCRE error as a human-readable message, similar to functionality existing in other extensions, such as json_last_error_msg(). Closes GH-5185. --- sapi/cli/tests/006.phpt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sapi/cli/tests') diff --git a/sapi/cli/tests/006.phpt b/sapi/cli/tests/006.phpt index b1f756d17f..f1e3a0a33d 100644 --- a/sapi/cli/tests/006.phpt +++ b/sapi/cli/tests/006.phpt @@ -165,6 +165,12 @@ string(%d) "Extension [ extension #%d pcre version %s ] { } - Return [ int ] } + Function [ function preg_last_error_msg ] { + + - Parameters [0] { + } + - Return [ string ] + } } } -- cgit v1.2.1