Skip to content

Commit 046ae2f

Browse files
committed
Merge branch 'PHP-5.3' into PHP-5.4
* PHP-5.3: Fixed uninitialized zval.type (Yoram)
2 parents 36e88d7 + e1410b5 commit 046ae2f

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)