no need to separate the zval here
authorMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 18:15:47 +0000 (18:15 +0000)
committerMichael Wallner <mike@php.net>
Wed, 12 Dec 2012 18:15:47 +0000 (18:15 +0000)
php_http_params.c

index 3d6e8025820486cdfc75b7bd307c09254819a7bb..9ff51a75cd816244c4fd9c445ad370864f343959 100644 (file)
@@ -575,13 +575,7 @@ static inline void shift_key(php_http_buffer_t *buf, char *key_str, size_t key_l
 static inline void shift_val(php_http_buffer_t *buf, zval *zvalue, const char *vss, size_t vsl, unsigned flags TSRMLS_DC)
 {
        if (Z_TYPE_P(zvalue) != IS_BOOL) {
-               zval *tmp;
-
-               if (Z_TYPE_P(zvalue) == IS_ARRAY) {
-                       tmp = php_http_zsep(1, IS_ARRAY, zvalue);
-               } else {
-                       tmp = php_http_zsep(1, IS_STRING, zvalue);
-               }
+               zval *tmp = php_http_ztyp(IS_STRING, zvalue);
 
                prepare_value(flags, tmp TSRMLS_CC);
                php_http_buffer_append(buf, vss, vsl);