- if (Z_TYPE_PP(zparam) != IS_ARRAY) {
- zval *tmp = php_http_ztyp(IS_STRING, *zparam);
-
- prepare_value(flags, tmp TSRMLS_CC);
-
- php_http_buffer_append(buf, vss, vsl);
- php_http_buffer_append(buf, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp));
- zval_ptr_dtor(&tmp);
- } else {
- zval **zvalue, **zargs, **zarg;
-
- if (SUCCESS == zend_hash_find(Z_ARRVAL_PP(zparam), ZEND_STRS("value"), (void *) &zvalue)) {
- if (Z_TYPE_PP(zvalue) != IS_BOOL) {
- zval *tmp, *tmp2;
-
- if (Z_TYPE_PP(zvalue) == IS_ARRAY) {
- tmp = php_http_zsep(1, IS_ARRAY, *zvalue);
- do {
- if (key1.type == HASH_KEY_IS_STRING) {
- char *key;
- size_t len;
-
- prepare_key(flags, key1.str, key1.len - 1, &key, &len TSRMLS_CC);
- php_http_buffer_append(buf, key, len);
- efree(key);
- } else {
- php_http_buffer_appendf(buf, "%lu", key1.num);
- }
-
- tmp2 = php_http_zsep(1, IS_ARRAY, tmp);
- prepare_value(flags, tmp2 TSRMLS_CC);
- php_http_buffer_append(buf, Z_STRVAL_P(tmp2), Z_STRLEN_P(tmp2));
- zval_ptr_dtor(&tmp2);
-
- while (SUCCESS == zend_hash_get_current_data(Z_ARRVAL_P(tmp), (void *) &zvalue) && Z_TYPE_PP(zvalue) == IS_ARRAY);
-
- tmp2 = php_http_ztyp(IS_STRING, *zvalue);
- prepare_value(flags, tmp2 TSRMLS_CC);
- php_http_buffer_append(buf, vss, vsl);
- php_http_buffer_append(buf, Z_STRVAL_P(tmp2), Z_STRLEN_P(tmp2));
- zval_ptr_dtor(&tmp2);
- } while (SUCCESS == zend_hash_move_forward(Z_ARRVAL_P(tmp)));
- zval_ptr_dtor(&tmp);
- } else {
-
- tmp = php_http_ztyp(IS_STRING, *zvalue);
- prepare_value(flags, tmp TSRMLS_CC);
- php_http_buffer_append(buf, vss, vsl);
- php_http_buffer_append(buf, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp));
- zval_ptr_dtor(&tmp);
- }
- } else if (!Z_BVAL_PP(zvalue)) {
- php_http_buffer_append(buf, vss, vsl);
- php_http_buffer_appends(buf, "0");