@@ -798,7 +798,7 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
798
798
799
799
/* parse the return value from one of the stat functions and store the
800
800
* relevant fields into the statbuf provided */
801
- static int statbuf_from_array (zval * array , php_stream_statbuf * ssb )
801
+ static void statbuf_from_array (zval * array , php_stream_statbuf * ssb )
802
802
{
803
803
zval * elem ;
804
804
@@ -832,7 +832,6 @@ static int statbuf_from_array(zval *array, php_stream_statbuf *ssb)
832
832
833
833
#undef STAT_PROP_ENTRY
834
834
#undef STAT_PROP_ENTRY_EX
835
- return SUCCESS ;
836
835
}
837
836
838
837
static int php_userstreamop_stat (php_stream * stream , php_stream_statbuf * ssb )
@@ -848,8 +847,8 @@ static int php_userstreamop_stat(php_stream *stream, php_stream_statbuf *ssb)
848
847
call_result = call_method_if_exists (& us -> object , & func_name , & retval , 0 , NULL );
849
848
850
849
if (call_result == SUCCESS && Z_TYPE (retval ) == IS_ARRAY ) {
851
- if ( SUCCESS == statbuf_from_array (& retval , ssb ))
852
- ret = 0 ;
850
+ statbuf_from_array (& retval , ssb );
851
+ ret = 0 ;
853
852
} else {
854
853
if (call_result == FAILURE ) {
855
854
php_error_docref (NULL , E_WARNING , "%s::" USERSTREAM_STAT " is not implemented!" ,
@@ -1287,8 +1286,8 @@ static int user_wrapper_stat_url(php_stream_wrapper *wrapper, const char *url, i
1287
1286
1288
1287
if (call_result == SUCCESS && Z_TYPE (zretval ) == IS_ARRAY ) {
1289
1288
/* We got the info we needed */
1290
- if ( SUCCESS == statbuf_from_array (& zretval , ssb ))
1291
- ret = 0 ;
1289
+ statbuf_from_array (& zretval , ssb );
1290
+ ret = 0 ;
1292
1291
} else {
1293
1292
if (call_result == FAILURE ) {
1294
1293
php_error_docref (NULL , E_WARNING , "%s::" USERSTREAM_STATURL " is not implemented!" ,
0 commit comments