@@ -1384,7 +1384,7 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
1384
1384
php_stream * intstream = NULL ;
1385
1385
int call_result ;
1386
1386
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 */
1388
1388
bool report_errors = retptr ;
1389
1389
1390
1390
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)
1404
1404
if (call_result == FAILURE ) {
1405
1405
if (report_errors ) {
1406
1406
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 ));
1408
1408
}
1409
1409
break ;
1410
1410
}
@@ -1415,14 +1415,14 @@ static int php_userstreamop_cast(php_stream *stream, int castas, void **retptr)
1415
1415
if (!intstream ) {
1416
1416
if (report_errors ) {
1417
1417
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 ));
1419
1419
}
1420
1420
break ;
1421
1421
}
1422
1422
if (intstream == stream ) {
1423
1423
if (report_errors ) {
1424
1424
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 ));
1426
1426
}
1427
1427
intstream = NULL ;
1428
1428
break ;
0 commit comments