Skip to content

Commit 4dd3caf

Browse files
committed
Code review comments
1 parent 0f7149e commit 4dd3caf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main/streams/userspace.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ 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-
/* If we a checking if the stream can cast, no return pointer is provided, so do not emit errors */
1387+
/* If we are checking if the stream can cast, no return pointer is provided, so do not emit errors */
13881388
bool report_errors = retptr;
13891389

13901390
ZVAL_STRINGL(&func_name, USERSTREAM_CAST, sizeof(USERSTREAM_CAST)-1);
@@ -1404,7 +1404,7 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
14041404
if (call_result == FAILURE) {
14051405
if (report_errors) {
14061406
php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_CAST " is not implemented!",
1407-
ZSTR_VAL(us->wrapper->ce->name));
1407+
ZSTR_VAL(us->wrapper->ce->name));
14081408
}
14091409
break;
14101410
}
@@ -1415,14 +1415,14 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
14151415
if (!intstream) {
14161416
if (report_errors) {
14171417
php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_CAST " must return a stream resource",
1418-
ZSTR_VAL(us->wrapper->ce->name));
1418+
ZSTR_VAL(us->wrapper->ce->name));
14191419
}
14201420
break;
14211421
}
14221422
if (intstream == stream) {
14231423
if (report_errors) {
14241424
php_error_docref(NULL, E_WARNING, "%s::" USERSTREAM_CAST " must not return itself",
1425-
ZSTR_VAL(us->wrapper->ce->name));
1425+
ZSTR_VAL(us->wrapper->ce->name));
14261426
}
14271427
intstream = NULL;
14281428
break;

0 commit comments

Comments
 (0)