--TEST-- Bug #44818 (php://memory writeable when opened read only) --FILE-- --EXPECTF-- php://memory, r resource(%d) of type (stream) bool(false) int(0) string(0) "" php://memory, r+ resource(%d) of type (stream) int(3) int(0) string(3) "foo" php://temp, r resource(%d) of type (stream) bool(false) int(0) string(0) "" php://temp, w resource(%d) of type (stream) int(3) int(0) string(3) "foo"