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