]> granicus.if.org Git - php/commitdiff
Removed unnecassary strlen()
authorDmitry Stogov <dmitry@php.net>
Mon, 3 Mar 2008 11:11:43 +0000 (11:11 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 3 Mar 2008 11:11:43 +0000 (11:11 +0000)
ext/pcre/php_pcre.c

index 98ef27afc05f183f0044c9de1f7cfa2179b4976d..5566c8e69d9123235d654c5a662eb63998c504a4 100644 (file)
@@ -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