pollita         Fri Feb 20 15:38:16 2004 EDT

  Modified files:              
    /php-src/ext/standard       http.c 
  Log:
  Bug Fix #27335: Numeric indexes crashing http_build_query()
  
http://cvs.php.net/diff.php/php-src/ext/standard/http.c?r1=1.11&r2=1.12&ty=u
Index: php-src/ext/standard/http.c
diff -u php-src/ext/standard/http.c:1.11 php-src/ext/standard/http.c:1.12
--- php-src/ext/standard/http.c:1.11    Thu Jan  8 03:17:32 2004
+++ php-src/ext/standard/http.c Fri Feb 20 15:38:14 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: http.c,v 1.11 2004/01/08 08:17:32 andi Exp $ */
+/* $Id: http.c,v 1.12 2004/02/20 20:38:14 pollita Exp $ */
 
 #include "php_http.h"
 #include "php_ini.h"
@@ -59,9 +59,9 @@
                        /* We don't want that trailing NULL */
                        key_len -= 1;
                }
-       
+
                /* handling for private & protected object properties */
-               if (*key == '\0' && type != NULL) {
+               if (key && *key == '\0' && type != NULL) {
                        char *tmp;
 
                        zend_object *zobj = zend_objects_get_address(type TSRMLS_CC);

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

Reply via email to