Lines Matching refs:pvalue
2899 zval *data, *pvalue, *disp_data, *env_data; in PHP_FUNCTION() local
2930 if ((pvalue = zend_hash_str_find(envelope, "remail", sizeof("remail") - 1)) != NULL) { in PHP_FUNCTION()
2931 convert_to_string(pvalue); in PHP_FUNCTION()
2932 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "remail"); in PHP_FUNCTION()
2933 env->remail = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
2935 if ((pvalue = zend_hash_str_find(envelope, "return_path", sizeof("return_path") - 1)) != NULL) { in PHP_FUNCTION()
2936 convert_to_string(pvalue); in PHP_FUNCTION()
2937 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "return_path"); in PHP_FUNCTION()
2938 PHP_RFC822_PARSE_ADRLIST(&env->return_path, pvalue); in PHP_FUNCTION()
2940 if ((pvalue = zend_hash_str_find(envelope, "date", sizeof("date") - 1)) != NULL) { in PHP_FUNCTION()
2941 convert_to_string(pvalue); in PHP_FUNCTION()
2942 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "date"); in PHP_FUNCTION()
2943 env->date = (unsigned char*)cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
2945 if ((pvalue = zend_hash_str_find(envelope, "from", sizeof("from") - 1)) != NULL) { in PHP_FUNCTION()
2946 convert_to_string(pvalue); in PHP_FUNCTION()
2947 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "from"); in PHP_FUNCTION()
2948 PHP_RFC822_PARSE_ADRLIST(&env->from, pvalue); in PHP_FUNCTION()
2950 if ((pvalue = zend_hash_str_find(envelope, "reply_to", sizeof("reply_to") - 1)) != NULL) { in PHP_FUNCTION()
2951 convert_to_string(pvalue); in PHP_FUNCTION()
2952 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "reply_to"); in PHP_FUNCTION()
2953 PHP_RFC822_PARSE_ADRLIST(&env->reply_to, pvalue); in PHP_FUNCTION()
2955 if ((pvalue = zend_hash_str_find(envelope, "in_reply_to", sizeof("in_reply_to") - 1)) != NULL) { in PHP_FUNCTION()
2956 convert_to_string(pvalue); in PHP_FUNCTION()
2957 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "in_reply_to"); in PHP_FUNCTION()
2958 env->in_reply_to = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
2960 if ((pvalue = zend_hash_str_find(envelope, "subject", sizeof("subject") - 1)) != NULL) { in PHP_FUNCTION()
2961 convert_to_string(pvalue); in PHP_FUNCTION()
2962 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "subject"); in PHP_FUNCTION()
2963 env->subject = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
2965 if ((pvalue = zend_hash_str_find(envelope, "to", sizeof("to") - 1)) != NULL) { in PHP_FUNCTION()
2966 convert_to_string(pvalue); in PHP_FUNCTION()
2967 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "to"); in PHP_FUNCTION()
2968 PHP_RFC822_PARSE_ADRLIST(&env->to, pvalue); in PHP_FUNCTION()
2970 if ((pvalue = zend_hash_str_find(envelope, "cc", sizeof("cc") - 1)) != NULL) { in PHP_FUNCTION()
2971 convert_to_string(pvalue); in PHP_FUNCTION()
2972 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "cc"); in PHP_FUNCTION()
2973 PHP_RFC822_PARSE_ADRLIST(&env->cc, pvalue); in PHP_FUNCTION()
2975 if ((pvalue = zend_hash_str_find(envelope, "bcc", sizeof("bcc") - 1)) != NULL) { in PHP_FUNCTION()
2976 convert_to_string(pvalue); in PHP_FUNCTION()
2977 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "bcc"); in PHP_FUNCTION()
2978 PHP_RFC822_PARSE_ADRLIST(&env->bcc, pvalue); in PHP_FUNCTION()
2980 if ((pvalue = zend_hash_str_find(envelope, "message_id", sizeof("message_id") - 1)) != NULL) { in PHP_FUNCTION()
2981 convert_to_string(pvalue); in PHP_FUNCTION()
2982 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "message_id"); in PHP_FUNCTION()
2983 env->message_id=cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
2986 …if ((pvalue = zend_hash_str_find(envelope, "custom_headers", sizeof("custom_headers") - 1)) != NUL… in PHP_FUNCTION()
2987 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
2989 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
2990 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pvalue), env_data) { in PHP_FUNCTION()
3022 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3023 zend_long type = zval_get_long(pvalue); in PHP_FUNCTION()
3028 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3029 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3034 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3035 convert_to_string(pvalue); in PHP_FUNCTION()
3036 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3038 tmp_param->value = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3043 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3044 if(Z_TYPE_P(pvalue) == IS_ARRAY && !HT_IS_PACKED(Z_ARRVAL_P(pvalue))) { in PHP_FUNCTION()
3046 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3047 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3062 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3063 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3064 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3065 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3067 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3068 convert_to_string(pvalue); in PHP_FUNCTION()
3069 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3070 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3072 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3073 convert_to_string(pvalue); in PHP_FUNCTION()
3074 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3075 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3077 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3078 convert_to_string(pvalue); in PHP_FUNCTION()
3079 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3080 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3081 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3083 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3084 if (Z_TYPE_P(pvalue) == IS_ARRAY && !HT_IS_PACKED(Z_ARRVAL_P(pvalue))) { in PHP_FUNCTION()
3086 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3087 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3105 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3106 convert_to_string(pvalue); in PHP_FUNCTION()
3107 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3108 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3109 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3116 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3117 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3119 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3120 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3122 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3123 convert_to_string(pvalue); in PHP_FUNCTION()
3124 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3125 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3130 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3131 zend_long tmp_type = zval_get_long(pvalue); in PHP_FUNCTION()
3149 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3150 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3155 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3156 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3157 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3159 tmp_param->value = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3160 memcpy(tmp_param->value, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3165 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3166 if (Z_TYPE_P(pvalue) == IS_ARRAY && !HT_IS_PACKED(Z_ARRVAL_P(pvalue))) { in PHP_FUNCTION()
3168 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3169 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3184 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3185 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3186 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3187 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3189 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3190 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3191 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3192 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3194 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3195 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3196 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3197 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3199 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3200 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3201 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3202 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3203 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3205 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3206 if (Z_TYPE_P(pvalue) == IS_ARRAY && !HT_IS_PACKED(Z_ARRVAL_P(pvalue))) { in PHP_FUNCTION()
3208 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3209 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3227 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3228 convert_to_string(pvalue); in PHP_FUNCTION()
3229 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3230 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3231 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3238 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3239 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3241 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3242 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3244 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3245 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3246 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3247 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()