zoe             Tue Apr 28 20:58:15 2009 UTC

  Modified files:              
    /phpruntests/src/testcase/sections/configurationsections    
                                                                
rtPostSection.php 
  Log:
  POST implemented
  
http://cvs.php.net/viewvc.cgi/phpruntests/src/testcase/sections/configurationsections/rtPostSection.php?r1=1.1&r2=1.2&diff_format=u
Index: phpruntests/src/testcase/sections/configurationsections/rtPostSection.php
diff -u 
phpruntests/src/testcase/sections/configurationsections/rtPostSection.php:1.1 
phpruntests/src/testcase/sections/configurationsections/rtPostSection.php:1.2
--- 
phpruntests/src/testcase/sections/configurationsections/rtPostSection.php:1.1   
    Mon Apr 27 21:05:54 2009
+++ phpruntests/src/testcase/sections/configurationsections/rtPostSection.php   
Tue Apr 28 20:58:15 2009
@@ -18,12 +18,14 @@
     private $postFileName;
 
     protected function init()
-    {
+    { 
+        $postString = implode('\n', $this->sectionContents);
         $this->postVariables['CONTENT_TYPE'] = 
'application/x-www-form-urlencoded';
+        $this->postVariables['CONTENT_LENGTH'] = strlen($postString);
         $this->postVariables['REQUEST_METHOD'] = 'POST';
 
-        $postString = implode('\n', $this->sectionContents);
         $this->postFileName = tempnam(sys_get_temp_dir(), 'post');
+        
         file_put_contents($this->postFileName, $postString);
     }
 



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

Reply via email to