dmitry          Fri Sep 16 11:47:43 2005 EDT

  Modified files:              
    /php-src    NEWS 
    /php-src/ext/soap   php_http.c 
  Log:
  Fixed bug #34478 (Incorrect parsing of url's fragment (#...))
  
  
http://cvs.php.net/diff.php/php-src/NEWS?r1=1.2062&r2=1.2063&ty=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2062 php-src/NEWS:1.2063
--- php-src/NEWS:1.2062 Fri Sep 16 10:40:44 2005
+++ php-src/NEWS        Fri Sep 16 11:47:41 2005
@@ -18,6 +18,7 @@
 - Fixed a bug where stream_get_meta_data() did not return the "uri" element for
   files opened with tmpname(). (Derick)
 - Fixed bug #34518 (Unset doesn't separate container in CV). (Dmitry)
+- Fixed bug #34478 (Incorrect parsing of url's fragment (#...)). (Dmitry)
 - Fixed bug #34449 (ext/soap: XSD_ANYXML functionality not exposed). (Dmitry)
 - Fixed bug #34310 (foreach($arr as $c->d => $x) crashes). (Dmitry)
 - Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
http://cvs.php.net/diff.php/php-src/ext/soap/php_http.c?r1=1.77&r2=1.78&ty=u
Index: php-src/ext/soap/php_http.c
diff -u php-src/ext/soap/php_http.c:1.77 php-src/ext/soap/php_http.c:1.78
--- php-src/ext/soap/php_http.c:1.77    Wed Aug  3 10:07:47 2005
+++ php-src/ext/soap/php_http.c Fri Sep 16 11:47:42 2005
@@ -17,7 +17,7 @@
   |          Dmitry Stogov <[EMAIL PROTECTED]>                             |
   +----------------------------------------------------------------------+
 */
-/* $Id: php_http.c,v 1.77 2005/08/03 14:07:47 sniper Exp $ */
+/* $Id: php_http.c,v 1.78 2005/09/16 15:47:42 dmitry Exp $ */
 
 #include "php_soap.h"
 #include "ext/standard/base64.h"
@@ -400,6 +400,10 @@
                        smart_str_appendc(&soap_headers, '?');
                        smart_str_appends(&soap_headers, phpurl->query);
                }
+               if (phpurl->fragment) {
+                       smart_str_appendc(&soap_headers, '#');
+                       smart_str_appends(&soap_headers, phpurl->fragment);
+               }
                smart_str_append_const(&soap_headers, " HTTP/1.1\r\n"
                        "Host: ");
                smart_str_appends(&soap_headers, phpurl->host);
@@ -556,6 +560,10 @@
                                                
smart_str_appendc(&soap_headers, '?');
                                                
smart_str_appends(&soap_headers, phpurl->query);
                                        }
+                                       if (phpurl->fragment) {
+                                                       
smart_str_appendc(&soap_headers, '#');
+                                                       
smart_str_appends(&soap_headers, phpurl->fragment);
+                                       }
                                        if (zend_hash_find(Z_ARRVAL_PP(digest), 
"qop", sizeof("qop"), (void **)&tmp) == SUCCESS &&
                                            Z_TYPE_PP(tmp) == IS_STRING) {
                                        /* TODO: Support for qop="auth-int" */

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

Reply via email to