iliaa           Tue Oct 15 12:47:02 2002 EDT

  Modified files:              
    /php4       run-tests.php 
  Log:
  Fixed a bug in the calculation of the POST request length.
  
  
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.71 php4/run-tests.php:1.72
--- php4/run-tests.php:1.71     Mon Oct 14 05:32:36 2002
+++ php4/run-tests.php  Tue Oct 15 12:46:57 2002
@@ -303,7 +303,7 @@
        $url_bits = parse_url(QA_SUBMISSION_PAGE);
        if (empty($url_bits['port'])) $url_bits['port'] = 80;
        
-       $data = urlencode(base64_encode(preg_replace("/[\\x00]/", "[0x0]", $data)));
+       $data = "php_test_data=" . urlencode(base64_encode(preg_replace("/[\\x00]/", 
+"[0x0]", $data)));
        $data_length = strlen($data);
        
        $fs = fsockopen($url_bits['host'], $url_bits['port'], $errno, $errstr, 10);
@@ -317,9 +317,8 @@
        fwrite($fs, "User-Agent: QA Browser 0.1\r\n");
        fwrite($fs, "Content-Type: application/x-www-form-urlencoded\r\n");
        fwrite($fs, "Content-Length: ".$data_length."\r\n\r\n");
-       fwrite($fs, "php_test_data=".$data);
+       fwrite($fs, $data);
        fwrite($fs, "\r\n\r\n");
-       fflush($fs);
        fclose($fs);
 
        return 1;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to