Less brittle test for gethostname()

Update phpdoc for Curl