From: Hartmut Holzgraefe Date: Thu, 29 May 2003 20:24:00 +0000 (+0000) Subject: MFH X-Git-Tag: BEFORE_FD_REAPPLY~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63130ca78274266590a7c9f7b1cc0e4a01a74de7;p=php MFH --- diff --git a/main/user_streams.c b/main/user_streams.c index 1de2293401..1b3a813494 100644 --- a/main/user_streams.c +++ b/main/user_streams.c @@ -628,12 +628,12 @@ static int php_userstreamop_seek(php_stream *stream, off_t offset, int whence, o * relevant fields into the statbuf provided */ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb TSRMLS_DC) { - zval *elem; + zval **elem; #define STAT_PROP_ENTRY(name) \ if (SUCCESS == zend_hash_find(Z_ARRVAL_P(array), #name, sizeof(#name), (void**)&elem)) { \ - convert_to_long(elem); \ - ssb->sb.st_##name = Z_LVAL_P(elem); \ + convert_to_long(*elem); \ + ssb->sb.st_##name = Z_LVAL_PP(elem); \ } STAT_PROP_ENTRY(dev);