--TEST-- Test fopen and fclose() functions - usage variations - "xb" mode --FILE-- --EXPECTF-- *** Test fopen() & fclose() functions: with 'xb' mode *** resource(%d) of type (stream) string(6) "stream" int(0) int(37) int(37) bool(false) int(0) bool(true) string(7) "Unknown" Warning: fopen(%s): failed to open stream: File exists in %s on line %d *** Done *** --UEXPECTF-- *** Test fopen() & fclose() functions: with 'xb' mode *** resource(%d) of type (stream) unicode(6) "stream" int(0) Notice: fwrite(): 37 character unicode buffer downcoded for binary stream runtime_encoding in %s on line %d int(37) int(37) bool(false) int(0) bool(true) unicode(7) "Unknown" Warning: fopen(%s): failed to open stream: File exists in %s on line %d *** Done ***