X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_params.c;h=92cc558962af525355cfa0fc32672dd858e8e3a5;hp=8988f43c65c0cd33dcd9ff7220304c0c4065d7bd;hb=b3831bc5f19cf32880ea19341c3527f0e9553517;hpb=0ccb6d6575f81affd97a78ba1a88641ad41b4b55 diff --git a/src/php_http_params.c b/src/php_http_params.c index 8988f43..92cc558 100644 --- a/src/php_http_params.c +++ b/src/php_http_params.c @@ -489,7 +489,7 @@ static void merge_param(HashTable *params, zval *zdata, zval **current_param, zv zval *test_ptr; while (Z_TYPE_P(zdata_ptr) == IS_ARRAY && (test_ptr = zend_hash_get_current_data(Z_ARRVAL_P(zdata_ptr)))) { - if (Z_TYPE_P(test_ptr) == IS_ARRAY) { + if (Z_TYPE_P(test_ptr) == IS_ARRAY && Z_TYPE_P(ptr) == IS_ARRAY) { zval *tmp_ptr = ptr; /* now find key in ptr */