summaryrefslogtreecommitdiff
path: root/sapi/cli/tests
diff options
context:
space:
mode:
authorNicolas Oelgart <nicolas.oelgart@atrapalo.com>2020-02-17 14:29:12 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-25 10:26:03 +0100
commitaa79a22d32f31dbc5343f8191e925aa07447c3ec (patch)
tree85a3cbefa474cb428161242ad54c1631a654c980 /sapi/cli/tests
parentbb6e2a1615a54bc2986c782a2541289fd33a1bbb (diff)
downloadphp-git-aa79a22d32f31dbc5343f8191e925aa07447c3ec.tar.gz
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.
Diffstat (limited to 'sapi/cli/tests')
-rw-r--r--sapi/cli/tests/006.phpt6
1 files changed, 6 insertions, 0 deletions
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 [ <persistent> extension #%d pcre version %s ] {
}
- Return [ int ]
}
+ Function [ <internal:pcre> function preg_last_error_msg ] {
+
+ - Parameters [0] {
+ }
+ - Return [ string ]
+ }
}
}