mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Initialize structure (some fields may be missed in array returned from user handler).
This commit is contained in:
parent
cef0d27af9
commit
0e563dfa93
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue