Skip to content

Commit 78fd4aa

Browse files
committed
Move code
1 parent 7ad6e28 commit 78fd4aa

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

main/streams/userspace.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,9 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
748748
zend_result call_result = zend_call_method_if_exists(Z_OBJ(us->object), func_name, &retval, 2, args);
749749
zend_string_release_ex(func_name, false);
750750

751+
stream->flags &= ~PHP_STREAM_FLAG_NO_FCLOSE;
752+
stream->flags |= orig_no_fclose;
753+
751754
zval_ptr_dtor(&args[0]);
752755
zval_ptr_dtor(&args[1]);
753756

@@ -769,7 +772,7 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
769772
ZVAL_UNDEF(&retval);
770773

771774
if (ret) {
772-
goto out;
775+
return ret;
773776
}
774777

775778
/* now determine where we are */
@@ -789,10 +792,6 @@ static int php_userstreamop_seek(php_stream *stream, zend_off_t offset, int when
789792

790793
zval_ptr_dtor(&retval);
791794

792-
out:
793-
stream->flags &= ~PHP_STREAM_FLAG_NO_FCLOSE;
794-
stream->flags |= orig_no_fclose;
795-
796795
return ret;
797796
}
798797

0 commit comments

Comments
 (0)