mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
Bug Fix #27335: Numeric indexes crashing http_build_query()
This commit is contained in:
parent
4be7974f82
commit
15cd6762f8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user