Skip to content

Commit bcade81

Browse files
committed
Removed unnecassary strlen()
1 parent a9146c6 commit bcade81

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/pcre/php_pcre.c

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le
244244

245245
/* Try to lookup the cached regex entry, and if successful, just pass
246246
back the compiled pattern, otherwise go on and compile it. */
247-
regex_len = strlen(regex);
248247
if (zend_hash_find(&PCRE_G(pcre_cache), regex, regex_len+1, (void **)&pce) == SUCCESS) {
249248
/*
250249
* We use a quick pcre_info() check to see whether cache is corrupted, and if it

0 commit comments

Comments
 (0)