mirror of
https://github.com/php/php-src.git
synced 2026-03-28 02:02:32 +01:00
Initialize structure (some fields may be missed in array returned from user handler).
This commit is contained in:
@@ -886,6 +886,7 @@ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC)
|
||||
|
||||
#define STAT_PROP_ENTRY(name) STAT_PROP_ENTRY_EX(name,name)
|
||||
|
||||
memset(ssb, 0, sizeof(php_stream_statbuf));
|
||||
STAT_PROP_ENTRY(dev);
|
||||
STAT_PROP_ENTRY(ino);
|
||||
STAT_PROP_ENTRY(mode);
|
||||
|
||||
Reference in New Issue
Block a user