summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2011-02-01 22:55:17 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2011-02-01 22:55:17 +0000
commit36d82e8a85cd9310d86dac4e34b928ca329f6859 (patch)
treeef03ec131fc6f1e2d27826d7884b7fc3e25859e8 /main
parentc9e94fe7533c6c39299c14d6afa4de3a2c7796aa (diff)
downloadphp-git-36d82e8a85cd9310d86dac4e34b928ca329f6859.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/streams/userspace.c b/main/streams/userspace.c
index b7fd646d2a..3a1b5dbf54 100644
--- a/main/streams/userspace.c
+++ b/main/streams/userspace.c
@@ -856,6 +856,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); \
}