Skip to content

Commit

Permalink
Merge branch 'PHP-5.3' into PHP-5.4
Browse files Browse the repository at this point in the history
* PHP-5.3:
  - Fixed bug #62955 (Only one directive is loaded from "Per Directory Values" Windows registry)
  • Loading branch information
felipensp committed Aug 30, 2012
2 parents 677de85 + de88499 commit eb8d603
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions win32/registry.c
Expand Up @@ -77,12 +77,13 @@ static int LoadDirectory(HashTable *directories, HKEY key, char *path, int path_
value_len = max_value+1;
if (RegEnumValue(key, i, name, &name_len, NULL, &type, value, &value_len) == ERROR_SUCCESS) {
if ((type == REG_SZ) || (type == REG_EXPAND_SZ)) {
ht = (HashTable*)malloc(sizeof(HashTable));
if (!ht) {
return ret;
ht = (HashTable*)malloc(sizeof(HashTable));
if (!ht) {
return ret;
}
zend_hash_init(ht, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1);
}
zend_hash_init(ht, 0, NULL, ZVAL_INTERNAL_PTR_DTOR, 1);

data = (zval*)malloc(sizeof(zval));
if (!data) {
return ret;
Expand Down

0 comments on commit eb8d603

Please sign in to comment.