Skip to content

Commit 52dd0d1

Browse files
committed
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: Fixed uninitialized zval.type (Yoram)
2 parents f787e21 + 046ae2f commit 52dd0d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

win32/registry.c

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
9191
INIT_PZVAL(data);
9292
Z_STRVAL_P(data) = zend_strndup(value, value_len-1);
9393
Z_STRLEN_P(data) = value_len-1;
94+
Z_TYPE_P(data) = IS_STRING;
9495
zend_hash_update(ht, name, name_len+1, &data, sizeof(zval*), NULL);
9596
}
9697
}

0 commit comments

Comments
 (0)