@@ -794,12 +794,12 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
794
794
795
795
/* parse the return value from one of the stat functions and store the
796
796
* relevant fields into the statbuf provided */
797
- static void statbuf_from_array (zval * array , php_stream_statbuf * ssb )
797
+ static void statbuf_from_array (const HashTable * array , php_stream_statbuf * ssb )
798
798
{
799
799
zval * elem ;
800
800
801
801
#define STAT_PROP_ENTRY_EX (name , name2 ) \
802
- if (NULL != (elem = zend_hash_str_find(Z_ARRVAL_P( array) , #name, sizeof(#name)-1))) { \
802
+ if (NULL != (elem = zend_hash_str_find(array, #name, sizeof(#name)-1))) { \
803
803
ssb->sb.st_##name2 = zval_get_long(elem); \
804
804
}
805
805
@@ -842,7 +842,7 @@ static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb)
842
842
zend_result call_result = call_method_if_exists (& us -> object , & func_name , & retval , 0 , NULL );
843
843
844
844
if (call_result == SUCCESS && Z_TYPE (retval ) == IS_ARRAY ) {
845
- statbuf_from_array (& retval , ssb );
845
+ statbuf_from_array (Z_ARR ( retval ) , ssb );
846
846
ret = 0 ;
847
847
} else {
848
848
if (call_result == FAILURE ) {
@@ -1275,7 +1275,7 @@ static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, i
1275
1275
1276
1276
if (call_result == SUCCESS && Z_TYPE (zretval ) == IS_ARRAY ) {
1277
1277
/* We got the info we needed */
1278
- statbuf_from_array (& zretval , ssb );
1278
+ statbuf_from_array (Z_ARR ( zretval ) , ssb );
1279
1279
ret = 0 ;
1280
1280
} else {
1281
1281
if (call_result == FAILURE ) {
0 commit comments