--TEST-- Test fopen and fclose() functions - usage variations - "x" mode --FILE-- --EXPECTF-- *** Test fopen() & fclose() functions: with 'x' 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" Warning: fopen(%s): failed to open stream: File exists in %s on line %d *** Done ***