Lines Matching refs:pvalue

3559 	zval *data, *pvalue, *disp_data, *env_data;  in PHP_FUNCTION()  local
3586 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "remail", sizeof("remail") - 1)) != NULL) { in PHP_FUNCTION()
3587 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3588 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "remail"); in PHP_FUNCTION()
3589 env->remail = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3591 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "return_path", sizeof("return_path") - 1)) … in PHP_FUNCTION()
3592 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3593 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "return_path"); in PHP_FUNCTION()
3594 PHP_RFC822_PARSE_ADRLIST(&env->return_path, pvalue); in PHP_FUNCTION()
3596 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "date", sizeof("date") - 1)) != NULL) { in PHP_FUNCTION()
3597 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3598 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "date"); in PHP_FUNCTION()
3599 env->date = (unsigned char*)cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3601 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "from", sizeof("from") - 1)) != NULL) { in PHP_FUNCTION()
3602 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3603 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "from"); in PHP_FUNCTION()
3604 PHP_RFC822_PARSE_ADRLIST(&env->from, pvalue); in PHP_FUNCTION()
3606 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "reply_to", sizeof("reply_to") - 1)) != NUL… in PHP_FUNCTION()
3607 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3608 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "reply_to"); in PHP_FUNCTION()
3609 PHP_RFC822_PARSE_ADRLIST(&env->reply_to, pvalue); in PHP_FUNCTION()
3611 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "in_reply_to", sizeof("in_reply_to") - 1)) … in PHP_FUNCTION()
3612 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3613 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "in_reply_to"); in PHP_FUNCTION()
3614 env->in_reply_to = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3616 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "subject", sizeof("subject") - 1)) != NULL)… in PHP_FUNCTION()
3617 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3618 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "subject"); in PHP_FUNCTION()
3619 env->subject = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3621 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "to", sizeof("to") - 1)) != NULL) { in PHP_FUNCTION()
3622 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3623 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "to"); in PHP_FUNCTION()
3624 PHP_RFC822_PARSE_ADRLIST(&env->to, pvalue); in PHP_FUNCTION()
3626 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "cc", sizeof("cc") - 1)) != NULL) { in PHP_FUNCTION()
3627 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3628 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "cc"); in PHP_FUNCTION()
3629 PHP_RFC822_PARSE_ADRLIST(&env->cc, pvalue); in PHP_FUNCTION()
3631 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "bcc", sizeof("bcc") - 1)) != NULL) { in PHP_FUNCTION()
3632 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3633 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "bcc"); in PHP_FUNCTION()
3634 PHP_RFC822_PARSE_ADRLIST(&env->bcc, pvalue); in PHP_FUNCTION()
3636 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "message_id", sizeof("message_id") - 1)) !=… in PHP_FUNCTION()
3637 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3638 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "message_id"); in PHP_FUNCTION()
3639 env->message_id=cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3642 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "custom_headers", sizeof("custom_headers") … in PHP_FUNCTION()
3643 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3645 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3646 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pvalue), env_data) { in PHP_FUNCTION()
3674 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3675 zend_long type = zval_get_long(pvalue); in PHP_FUNCTION()
3680 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3681 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3686 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3687 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3688 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3690 tmp_param->value = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3695 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3696 if(Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3698 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3699 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3714 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3715 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3716 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3717 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3719 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3720 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3721 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3722 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3724 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3725 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3726 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3727 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3729 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3730 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3731 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3732 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3733 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3735 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3736 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3738 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3739 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3757 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3758 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3759 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3760 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3761 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3768 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3769 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3771 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3772 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3774 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3775 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3776 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3777 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3782 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3783 zend_long tmp_type = zval_get_long(pvalue); in PHP_FUNCTION()
3801 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3802 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3807 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3808 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3809 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3811 tmp_param->value = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3812 memcpy(tmp_param->value, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3817 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3818 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3820 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3821 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3836 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3837 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3838 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3839 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3841 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3842 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3843 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3844 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3846 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3847 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3848 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3849 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3851 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3852 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3853 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3854 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3855 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3857 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3858 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3860 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3861 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3879 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3880 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3881 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3882 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3883 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3890 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3891 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3893 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3894 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3896 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3897 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3898 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3899 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()