summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-03-03 11:11:43 +0000
committerDmitry Stogov <dmitry@php.net>2008-03-03 11:11:43 +0000
commitbcade81501a138f814c1fe890130e13a9dee7cf9 (patch)
treeae445648e0ff70bd4acddbf12409b86a30beddaa /ext/pcre/php_pcre.c
parenta9146c60cb29b052332c98351a1c062dd9b0f4c3 (diff)
downloadphp-git-bcade81501a138f814c1fe890130e13a9dee7cf9.tar.gz
Removed unnecassary strlen()
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c1
1 files changed, 0 insertions, 1 deletions
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