bfrance         Thu Aug 19 16:26:39 2004 EDT

  Modified files:              
    /php-src    NEWS 
    /php-src/main       SAPI.c 
  Log:
  
  If you send a post with a content-type header and then the next post without the 
content-type header, raw_post_data will not be set.  This is because 
SG(request_info).post_entry is set to the first requests function pointer which makes 
it follow the wrong code path.
  
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.1796&r2=1.1797&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1796 php-src/NEWS:1.1797
--- php-src/NEWS:1.1796 Thu Aug 19 14:15:48 2004
+++ php-src/NEWS        Thu Aug 19 16:26:39 2004
@@ -25,6 +25,7 @@
 - Added bz2 stream filter support. (Sara)
 - Added support of parameter->value arrays to xsl_xsltprocessor_set_parameter() 
   (Tony)
+- Fixed bug with raw_post_data not getting set (Brian)
 - Fixed bug in mysql->client_version (Georg)
 - Fixed ZTS destruction. (Marcus)
 - Fixed bug #29737 (ip2long should return -1 if IP is 255.255.255.255 and FALSE on 
error). (Tony)
http://cvs.php.net/diff.php/php-src/main/SAPI.c?r1=1.189&r2=1.190&ty=u
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.189 php-src/main/SAPI.c:1.190
--- php-src/main/SAPI.c:1.189   Wed Aug 11 02:18:25 2004
+++ php-src/main/SAPI.c Thu Aug 19 16:26:39 2004
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: SAPI.c,v 1.189 2004/08/11 06:18:25 rasmus Exp $ */
+/* $Id: SAPI.c,v 1.190 2004/08/19 20:26:39 bfrance Exp $ */
 
 #include <ctype.h>
 #include <sys/stat.h>
@@ -296,6 +296,7 @@
        SG(request_info).current_user = NULL;
        SG(request_info).current_user_length = 0;
        SG(request_info).no_headers = 0;
+       SG(request_info).post_entry = NULL;
 
        /*
         * It's possible to override this general case in the activate() callback, 

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

Reply via email to