cvs: php-src(PHP_5_3) /ext/pcre php_pcre.c

From: Date: Mon, 03 Mar 2008 11:11:43 +0000
Subject: cvs: php-src(PHP_5_3) /ext/pcre php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-48840@lists.php.net to get a copy of this message
dmitry Mon Mar 3 11:11:43 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/pcre php_pcre.c Log: Removed unnecassary strlen() http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.9.2.21.2.11&r2=1.168.2.9.2.21.2.12&diff_format=u Index: php-src/ext/pcre/php_pcre.c diff -u php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.11 php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.12 --- php-src/ext/pcre/php_pcre.c:1.168.2.9.2.21.2.11 Wed Feb 20 22:12:17 2008 +++ php-src/ext/pcre/php_pcre.c Mon Mar 3 11:11:43 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.168.2.9.2.21.2.11 2008/02/20 22:12:17 felipe Exp $ */ +/* $Id: php_pcre.c,v 1.168.2.9.2.21.2.12 2008/03/03 11:11:43 dmitry Exp $ */ #include "php.h" #include "php_ini.h" @@ -244,7 +244,6 @@ /* 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

« previous php.cvs (#48840) next »