From bcade81501a138f814c1fe890130e13a9dee7cf9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 3 Mar 2008 11:11:43 +0000 Subject: [PATCH] Removed unnecassary strlen() --- ext/pcre/php_pcre.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 98ef27afc0..5566c8e69d 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -244,7 +244,6 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le /* Try to lookup the cached regex entry, and if successful, just pass back the compiled pattern, otherwise go on and compile it. */ - regex_len = strlen(regex); if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) { /* * We use a quick pcre_info() check to see whether cache is corrupted, and if it -- 2.40.0