--TEST-- An error is thrown when an unsupported type is encoded --SKIPIF-- --FILE-- --EXPECTF-- resource(5) of type (stream) bool(false) int(8) string(21) "Type is not supported" string(4) "null" int(8) string(21) "Type is not supported"