]> granicus.if.org Git - php/commit
Add preg_last_error_msg() function
authorNicolas Oelgart <nicolas.oelgart@atrapalo.com>
Mon, 17 Feb 2020 13:29:12 +0000 (14:29 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 25 Feb 2020 09:26:03 +0000 (10:26 +0100)
commitaa79a22d32f31dbc5343f8191e925aa07447c3ec
tree85a3cbefa474cb428161242ad54c1631a654c980
parentbb6e2a1615a54bc2986c782a2541289fd33a1bbb
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.
12 files changed:
UPGRADING
ext/pcre/php_pcre.c
ext/pcre/php_pcre.h
ext/pcre/php_pcre.stub.php
ext/pcre/php_pcre_arginfo.h
ext/pcre/tests/errors01.phpt [new file with mode: 0644]
ext/pcre/tests/errors02.phpt [new file with mode: 0644]
ext/pcre/tests/errors03.phpt [new file with mode: 0644]
ext/pcre/tests/errors04.phpt [new file with mode: 0644]
ext/pcre/tests/errors05.phpt [new file with mode: 0644]
ext/pcre/tests/errors06.phpt [new file with mode: 0644]
sapi/cli/tests/006.phpt