com php-src: fix datatype mismatches: win32/registry.c

From: Date: Tue, 28 Oct 2014 16:24:55 +0000
Subject: com php-src: fix datatype mismatches: win32/registry.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-82755@lists.php.net to get a copy of this message
Commit: 1770ae641ba71dc6f62ca0aaa46fc225a25f43dd Author: Anatol Belski <ab@php.net> Mon, 27 Oct 2014 19:23:03 +0100 Parents: 77ab77fd02b24aac32594c4f5f6ad21a2e961ed7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1770ae641ba71dc6f62ca0aaa46fc225a25f43dd Log: fix datatype mismatches Changed paths: M win32/registry.c Diff: diff --git a/win32/registry.c b/win32/registry.c index 10372cd..ef36c14 100644 --- a/win32/registry.c +++ b/win32/registry.c @@ -27,8 +27,8 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey) const char **key_name = registry_keys; if (sub_key) { - int main_key_len; - int sub_key_len = strlen(sub_key); + size_t main_key_len; + size_t sub_key_len = strlen(sub_key); char *reg_key; while (*key_name) { @@ -235,7 +235,6 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC) } zend_str_tolower(path, path_len); while (path_len >= 0) { - ZEND_API zval *zend_hash_str_find(const HashTable *ht, const char *key, int len); pht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len+1); if (pht != NULL) { HashTable *ht = pht;

« previous php.cvs (#82755) next »