1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 02:52:48 +02:00

Removed unnecassary strlen()

This commit is contained in:
Dmitry Stogov
2008-03-03 11:11:43 +00:00
parent a9146c60cb
commit bcade81501

View 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