Index: modules/simpletest/tests/common.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/simpletest/tests/common.test,v
retrieving revision 1.34
diff -u -9 -p -r1.34 common.test
--- modules/simpletest/tests/common.test	25 Apr 2009 13:56:06 -0000	1.34
+++ modules/simpletest/tests/common.test	25 Apr 2009 20:53:11 -0000
@@ -300,19 +300,23 @@ class DrupalHTTPRequestTestCase extends 
 
     // Fetch page.
     $result = drupal_http_request(url('node', array('absolute' => TRUE)));
     $this->assertEqual($result->code, 200, t('Fetched page successfully.'));
     $this->drupalSetContent($result->data);
     $this->assertTitle(variable_get('site_name', 'Drupal'), t('Site title matches.'));
 
     // Test that code and status message is returned.
     $result = drupal_http_request(url('pagedoesnotexist', array('absolute' => TRUE)));
-    $this->assertEqual($result->protocol, 'HTTP/1.0', t('Result protocol is set as HTTP/1.0'));
+    // header('HTTP/1.0 ...') does not force the response to be HTTP/1.1 prior
+    // to PHP 5.2.1 - see http://bugs.php.net/bug.php?id=38602
+    if (version_compare(PHP_VERSION, '5.2.1', '>=')) {
+      $this->assertEqual($result->protocol, 'HTTP/1.0', t('Result protocol is set as HTTP/1.0'));
+    }
     $this->assertEqual($result->code, '404', t('Result code is 404'));
     $this->assertEqual($result->status_message, 'Not Found', t('Result status message is "Not Found"'));
   }
 
   function testDrupalHTTPRequestBasicAuth() {
     $username = $this->randomName();
     $password = $this->randomName();
     $url = url('system-test/auth', array('absolute' => TRUE));
 
