From: Sara Golemon Date: Fri, 20 Feb 2004 20:38:14 +0000 (+0000) Subject: Bug Fix #27335: Numeric indexes crashing http_build_query() X-Git-Tag: RELEASE_0_2_0~244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15cd6762f86f8a898dff36080e672558a987cc20;p=php Bug Fix #27335: Numeric indexes crashing http_build_query() --- diff --git a/ext/standard/http.c b/ext/standard/http.c index c5a165ef6e..7cd909120d 100644 --- a/ext/standard/http.c +++ b/ext/standard/http.c @@ -59,9 +59,9 @@ PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, /* 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);