com php-src: Make a copy unconditionally: ext/pcre/php_pcre .c

From: Date: Sun, 09 Sep 2018 08:42:53 +0000
Subject: com php-src: Make a copy unconditionally: ext/pcre/php_pcre .c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103033@lists.php.net to get a copy of this message
Commit: 68c34ce0dcf251169f9c41b4df66c06cd6993c5e Author: Anatol Belski <ab@php.net> Sun, 9 Sep 2018 10:42:53 +0200 Parents: 9278be148e751bc6d2107f4df667f6a6de4daa66 Branches: PHP-7.3 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=68c34ce0dcf251169f9c41b4df66c06cd6993c5e Log: Make a copy unconditionally Changed paths: M ext/pcre/php_pcre.c Diff: diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 7aa879d..5165209 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -739,7 +739,7 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(zend_string *regex) efree(pattern); return NULL; } - _k = zend_string_dup(BG(locale_string), 1); + _k = zend_string_init(ZSTR_VAL(BG(locale_string)), ZSTR_LEN(BG(locale_string)), 1); zend_hash_add_ptr(&char_tables, _k, (void *)tables); zend_string_release(_k); }

« previous php.cvs (#103033) next »