For PUTs, use php://temp instead of php://memory. Evidence shows it
works for Windows.