Lines Matching refs:pvalue

3581 	zval *data, *pvalue, *disp_data, *env_data;  in PHP_FUNCTION()  local
3608 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "remail", sizeof("remail") - 1)) != NULL) { in PHP_FUNCTION()
3609 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3610 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "remail"); in PHP_FUNCTION()
3611 env->remail = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3613 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "return_path", sizeof("return_path") - 1)) … in PHP_FUNCTION()
3614 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3615 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "return_path"); in PHP_FUNCTION()
3616 PHP_RFC822_PARSE_ADRLIST(&env->return_path, pvalue); in PHP_FUNCTION()
3618 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "date", sizeof("date") - 1)) != NULL) { in PHP_FUNCTION()
3619 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3620 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "date"); in PHP_FUNCTION()
3621 env->date = (unsigned char*)cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3623 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "from", sizeof("from") - 1)) != NULL) { in PHP_FUNCTION()
3624 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3625 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "from"); in PHP_FUNCTION()
3626 PHP_RFC822_PARSE_ADRLIST(&env->from, pvalue); in PHP_FUNCTION()
3628 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "reply_to", sizeof("reply_to") - 1)) != NUL… in PHP_FUNCTION()
3629 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3630 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "reply_to"); in PHP_FUNCTION()
3631 PHP_RFC822_PARSE_ADRLIST(&env->reply_to, pvalue); in PHP_FUNCTION()
3633 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "in_reply_to", sizeof("in_reply_to") - 1)) … in PHP_FUNCTION()
3634 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3635 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "in_reply_to"); in PHP_FUNCTION()
3636 env->in_reply_to = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3638 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "subject", sizeof("subject") - 1)) != NULL)… in PHP_FUNCTION()
3639 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3640 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "subject"); in PHP_FUNCTION()
3641 env->subject = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3643 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "to", sizeof("to") - 1)) != NULL) { in PHP_FUNCTION()
3644 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3645 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "to"); in PHP_FUNCTION()
3646 PHP_RFC822_PARSE_ADRLIST(&env->to, pvalue); in PHP_FUNCTION()
3648 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "cc", sizeof("cc") - 1)) != NULL) { in PHP_FUNCTION()
3649 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3650 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "cc"); in PHP_FUNCTION()
3651 PHP_RFC822_PARSE_ADRLIST(&env->cc, pvalue); in PHP_FUNCTION()
3653 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "bcc", sizeof("bcc") - 1)) != NULL) { in PHP_FUNCTION()
3654 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3655 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 1, "bcc"); in PHP_FUNCTION()
3656 PHP_RFC822_PARSE_ADRLIST(&env->bcc, pvalue); in PHP_FUNCTION()
3658 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "message_id", sizeof("message_id") - 1)) !=… in PHP_FUNCTION()
3659 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3660 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "message_id"); in PHP_FUNCTION()
3661 env->message_id=cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3664 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(envelope), "custom_headers", sizeof("custom_headers") … in PHP_FUNCTION()
3665 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3667 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3668 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(pvalue), env_data) { in PHP_FUNCTION()
3696 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3697 zend_long type = zval_get_long(pvalue); in PHP_FUNCTION()
3702 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3703 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3708 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3709 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3710 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3712 tmp_param->value = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3717 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3718 if(Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3720 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3721 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3736 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3737 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3738 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3739 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3741 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3742 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3743 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3744 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3746 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3747 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3748 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3749 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3751 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3752 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3753 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3754 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3755 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3757 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3758 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3760 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3761 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3779 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3780 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3781 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3782 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3783 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3790 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3791 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3793 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3794 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3796 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3797 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3798 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3799 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3804 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type", sizeof("type") - 1)) != NULL) { in PHP_FUNCTION()
3805 zend_long tmp_type = zval_get_long(pvalue); in PHP_FUNCTION()
3823 … if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "encoding", sizeof("encoding") - 1)) != NULL) { in PHP_FUNCTION()
3824 zend_long encoding = zval_get_long(pvalue); in PHP_FUNCTION()
3829 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "charset", sizeof("charset") - 1)) != NULL) { in PHP_FUNCTION()
3830 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3831 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body charset"); in PHP_FUNCTION()
3833 tmp_param->value = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3834 memcpy(tmp_param->value, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3839 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "type.parameters", sizeof("type.parameters") - … in PHP_FUNCTION()
3840 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3842 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3843 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3858 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "subtype", sizeof("subtype") - 1)) != NULL) { in PHP_FUNCTION()
3859 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3860 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body subtype"); in PHP_FUNCTION()
3861 bod->subtype = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3863 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "id", sizeof("id") - 1)) != NULL) { in PHP_FUNCTION()
3864 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3865 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body id"); in PHP_FUNCTION()
3866 bod->id = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3868 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "description", sizeof("description") - 1)) != N… in PHP_FUNCTION()
3869 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3870 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body description"); in PHP_FUNCTION()
3871 bod->description = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()
3873 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition.type", sizeof("disposition.type") … in PHP_FUNCTION()
3874 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3875 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body disposition.type"); in PHP_FUNCTION()
3876 bod->disposition.type = (char *) fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3877 memcpy(bod->disposition.type, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue)+1); in PHP_FUNCTION()
3879 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "disposition", sizeof("disposition") - 1)) != N… in PHP_FUNCTION()
3880 if (Z_TYPE_P(pvalue) == IS_ARRAY) { in PHP_FUNCTION()
3882 SEPARATE_ARRAY(pvalue); in PHP_FUNCTION()
3883 ZEND_HASH_FOREACH_STR_KEY_VAL(Z_ARRVAL_P(pvalue), key, disp_data) { in PHP_FUNCTION()
3901 …if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "contents.data", sizeof("contents.data") - 1)) … in PHP_FUNCTION()
3902 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3903 bod->contents.text.data = fs_get(Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3904 memcpy(bod->contents.text.data, Z_STRVAL_P(pvalue), Z_STRLEN_P(pvalue) + 1); in PHP_FUNCTION()
3905 bod->contents.text.size = Z_STRLEN_P(pvalue); in PHP_FUNCTION()
3912 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "lines", sizeof("lines") - 1)) != NULL) { in PHP_FUNCTION()
3913 bod->size.lines = zval_get_long(pvalue); in PHP_FUNCTION()
3915 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "bytes", sizeof("bytes") - 1)) != NULL) { in PHP_FUNCTION()
3916 bod->size.bytes = zval_get_long(pvalue); in PHP_FUNCTION()
3918 if ((pvalue = zend_hash_str_find(Z_ARRVAL_P(data), "md5", sizeof("md5") - 1)) != NULL) { in PHP_FUNCTION()
3919 convert_to_string_ex(pvalue); in PHP_FUNCTION()
3920 CHECK_HEADER_INJECTION(Z_STR_P(pvalue), 0, "body md5"); in PHP_FUNCTION()
3921 bod->md5 = cpystr(Z_STRVAL_P(pvalue)); in PHP_FUNCTION()