Skip to content

Commit c5e04e2

Browse files
committed
Revert "Use PHP_STREAM_CAST_MASK to mask flags in castas param"
PHP_STREAM_CAST_MASK does not contain the REPORT_ERROR bit value This reverts commit 9617c45.
1 parent 9617c45 commit c5e04e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main/streams/userspace.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,10 +1384,8 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
13841384
php_stream * intstream = NULL;
13851385
int call_result;
13861386
int ret = FAILURE;
1387-
1388-
int flags = castas & PHP_STREAM_CAST_MASK;
1389-
castas &= ~PHP_STREAM_CAST_MASK;
1390-
bool report_errors = !(flags & PHP_STREAM_FLAG_SUPPRESS_ERRORS);
1387+
bool report_errors = !(castas & PHP_STREAM_FLAG_SUPPRESS_ERRORS);
1388+
castas &= ~PHP_STREAM_FLAG_SUPPRESS_ERRORS;
13911389

13921390
ZVAL_STRINGL(&func_name, USERSTREAM_CAST, sizeof(USERSTREAM_CAST)-1);
13931391

0 commit comments

Comments
 (0)