From 951923b9d299e5155eefa21682fde28a927618fb Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Mon, 8 Jul 2013 11:58:31 +0300 Subject: [PATCH 1/3] Unused variable tmp --- ext/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/config.c b/ext/config.c index b938f682bf8..5cb3a9ec044 100755 --- a/ext/config.c +++ b/ext/config.c @@ -332,7 +332,7 @@ static void array_merge_recursive_n(zval **a1, zval *a2 TSRMLS_DC) PHP_METHOD(Phalcon_Config, merge){ zval *config, *array_config, *value = NULL, *key = NULL, *active_value = NULL; - zval *other_array = NULL, *tmp = NULL; + zval *other_array = NULL; HashTable *ah0; HashPosition hp0; zval **hd; From 96d2e5fdfec578e28ec4e87c895ee2291bbeb94a Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Mon, 8 Jul 2013 11:59:39 +0300 Subject: [PATCH 2/3] Removed unused variables --- ext/cache/backend/apc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/cache/backend/apc.c b/ext/cache/backend/apc.c index 9c92ac5688d..b6e77f23f1e 100644 --- a/ext/cache/backend/apc.c +++ b/ext/cache/backend/apc.c @@ -260,8 +260,7 @@ PHP_METHOD(Phalcon_Cache_Backend_Apc, delete){ PHP_METHOD(Phalcon_Cache_Backend_Apc, queryKeys){ zval *prefix = NULL, *keys, *type, *prefix_pattern, *iterator; - zval *key = NULL, *real_key = NULL; - zval *r0 = NULL; + zval *key = NULL; zend_class_entry *ce0; #if PHP_VERSION_ID < 50500 char *str_key; From 0c266335643d24d7d367cc00f4a3171e8a8ee199 Mon Sep 17 00:00:00 2001 From: Vladimir Kolesnikov Date: Mon, 8 Jul 2013 12:21:42 +0300 Subject: [PATCH 3/3] Fixed gen-build.php --- scripts/gen-build.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/gen-build.php b/scripts/gen-build.php index 5c6e069202d..2cd137e2b41 100644 --- a/scripts/gen-build.php +++ b/scripts/gen-build.php @@ -133,6 +133,7 @@ public function generate($path, $destination='build/', $calculateHashKeys=false) #include "ext/standard/base64.h" #include "ext/standard/md5.h" #include "ext/standard/head.h" +#include "ext/standard/url.h" #include "ext/spl/spl_heap.h" #if HAVE_BUNDLED_PCRE @@ -571,6 +572,11 @@ private function _checkHeaders($path) continue; } + if (strpos($line, 'ext/') !== false) { + //echo $line, PHP_EOL; + continue; + } + if (strpos($line, 'kernel/') !== false) { //echo $line, PHP_EOL; continue;