[php-src] master: pcre: use php_pcre_error_code type instead of int type
| From: | Gina Peter Banyard | Date: | Wed, 23 Sep 2026 14:22:12 +0000 |
| Subject: | [php-src] master: pcre: use php_pcre_error_code type instead of int type | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141472@lists.php.net to get a copy of this message | ||
Author: Gina Peter Banyard (Girgias)
Date: 2026-09-23T15:22:04+01:00
Commit: https://github.com/php/php-src/commit/cc507facf4da31e644676c87d769e505a4190bf0
Raw diff: https://github.com/php/php-src/commit/cc507facf4da31e644676c87d769e505a4190bf0.diff
pcre: use php_pcre_error_code type instead of int type
Changed paths:
M ext/pcre/php_pcre.c
Diff:
diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c
index 997c20d11093..9cb778f1b2d5 100644
--- a/ext/pcre/php_pcre.c
+++ b/ext/pcre/php_pcre.c
@@ -104,7 +104,7 @@ static void php_pcre_free_char_table(zval *data)
static void pcre_handle_exec_error(int pcre_code) /* {{{ */
{
- int preg_code = 0;
+ php_pcre_error_code preg_code = PHP_PCRE_NO_ERROR;
switch (pcre_code) {
case PCRE2_ERROR_MATCHLIMIT: