From: Dmitry Stogov Date: Mon, 3 Mar 2008 11:11:43 +0000 (+0000) Subject: Removed unnecassary strlen() X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~715 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcade81501a138f814c1fe890130e13a9dee7cf9;p=php Removed unnecassary strlen() --- 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