add php upstream block, cache file descriptors