mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix datatype mismatches
This commit is contained in:
parent
77ab77fd02
commit
1770ae641b
1 changed files with 2 additions and 3 deletions
|
@ -27,8 +27,8 @@ static int OpenPhpRegistryKey(char* sub_key, HKEY *hKey)
|
||||||
const char **key_name = registry_keys;
|
const char **key_name = registry_keys;
|
||||||
|
|
||||||
if (sub_key) {
|
if (sub_key) {
|
||||||
int main_key_len;
|
size_t main_key_len;
|
||||||
int sub_key_len = strlen(sub_key);
|
size_t sub_key_len = strlen(sub_key);
|
||||||
char *reg_key;
|
char *reg_key;
|
||||||
|
|
||||||
while (*key_name) {
|
while (*key_name) {
|
||||||
|
@ -235,7 +235,6 @@ void UpdateIniFromRegistry(char *path TSRMLS_DC)
|
||||||
}
|
}
|
||||||
zend_str_tolower(path, path_len);
|
zend_str_tolower(path, path_len);
|
||||||
while (path_len >= 0) {
|
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);
|
pht = (HashTable *)zend_hash_str_find_ptr(PW32G(registry_directories), path, path_len+1);
|
||||||
if (pht != NULL) {
|
if (pht != NULL) {
|
||||||
HashTable *ht = pht;
|
HashTable *ht = pht;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue