--TEST-- Test fopen and fclose() functions - usage variations - "r" mode --FILE-- --EXPECTF-- *** Test fopen() & fclose() functions: with 'r' mode *** resource(%d) of type (stream) string(6) "stream" int(0) string(20) "line line of text li" Notice: fwrite(): write of 37 bytes failed with errno=9 Bad file descriptor in %s on line %d bool(false) bool(true) string(7) "Unknown" *** Done ***