com php-src: Use release for regex in imap: ext/imap/php_imap .c
| From: | Nikita Popov | Date: | Wed, 10 Apr 2019 08:01:49 +0000 |
| Subject: | com php-src: Use release for regex in imap: ext/imap/php_imap .c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105606@lists.php.net to get a copy of this message | ||
Commit: ce5e5b0aa360b001778ff3c8ae21822002fa2c53
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 10 Apr 2019 10:01:49 +0200
Parents: e2ea0f105c9c6c60b19f2584d72205e5b1fe11e8
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ce5e5b0aa360b001778ff3c8ae21822002fa2c53
Log:
Use release for regex in imap
The regex may be used as a cache key now.
Changed paths:
M ext/imap/php_imap.c
Diff:
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index ca002e7..3cee4e0 100644
--- a/ext/imap/php_imap..c
+++ b/ext/imap/php_imap.c
@@ -1351,11 +1351,11 @@ PHP_FUNCTION(imap_append)
/* Make sure the given internal_date string matches the RFC specifiedformat */
if ((pce = pcre_get_compiled_regex_cache(regex))== NULL) {
- zend_string_free(regex);
+ zend_string_release(regex);
RETURN_FALSE;
}
- zend_string_free(regex);
+ zend_string_release(regex);
php_pcre_match_impl(pce, internal_date, return_value, subpats, global,
0, Z_L(0), Z_L(0));