diff options
| author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-02-01 22:55:17 +0000 |
|---|---|---|
| committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2011-02-01 22:55:17 +0000 |
| commit | 1f4990299927a9fdf24676ebbd1c7f6729aa3838 (patch) | |
| tree | be5c38b49121b8fe057183d186ab1615ee4e01c2 /main | |
| parent | 01745fa657a9b3f8a8f79520a87c265ec3725792 (diff) | |
| download | php-git-1f4990299927a9fdf24676ebbd1c7f6729aa3838.tar.gz | |
- Fixed bug #53903 (userspace stream stat callback does not separate the
elements of the returned array before converting them).
Diffstat (limited to 'main')
| -rw-r--r-- | main/streams/userspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c index ce9a0afce4..49c3c662ae 100644 --- a/main/streams/userspace.c +++ b/main/streams/userspace.c @@ -855,6 +855,7 @@ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) #define STAT_PROP_ENTRY_EX(name, name2) \ if (SUCCESS == zend_hash_find(Z_ARRVAL_P(array), #name, sizeof(#name), (void**)&elem)) { \ + SEPARATE_ZVAL(elem); \ convert_to_long(*elem); \ ssb->sb.st_##name2 = Z_LVAL_PP(elem); \ } |
