Lines Matching refs:array

2 Test mail() function : array extra header basic functionality
18 $additional_headers = array(
22 array(
45 mail($to, $subject, $message, ['orig-date' => array('foo1')]);
51 mail($to, $subject, $message, ['from' => array('foo2')]);
57 mail($to, $subject, $message, ['sender' => array('foo3')]);
63 mail($to, $subject, $message, ['reply-to' => array('foo4')]);
69 mail($to, $subject, $message, ['to' => array('foo5')]);
75 mail($to, $subject, $message, ['bcc' => array('foo6')]);
81 mail($to, $subject, $message, ['message-id' => array('foo7')]);
87 mail($to, $subject, $message, ['in-reply-to'=> array('foo8')]);
100 mail($to, $subject, $message, ['foo1' => array('foo2'=>'bar1')]);
106 mail($to, $subject, $message, ['foo2' => array('foo2', array('foo3'))]);
112 mail($to, $subject, $message, ['foo3' => array(123)]);
118 mail($to, $subject, $message, ['foo4' => array(123.456)]);
124 mail($to, $subject, $message, ['foo5' => array(FALSE)]);
130 mail($to, $subject, $message, ['foo6' => array(NULL)]);
136 mail($to, $subject, $message, ['foo7' => array(new StdClass)]);
152 mail($to, $subject, $message, ['*:foo1' => array('bar1')]);
158 mail($to, $subject, $message, ['foo2:::' => array('bar1')]);
164 mail($to, $subject, $message, ['foo3()' => array('bar1')]);
170 mail($to, $subject, $message, ['foo4@' => array('bar1')]);
176 mail($to, $subject, $message, ['foo5|' => array('bar1')]);
182 mail($to, $subject, $message, ["\0foo6" => array('bar1')]);
188 mail($to, $subject, $message, ["foo7\0" => array('bar1')]);
194 mail($to, $subject, $message, ["foo8" => array()]);
230 TypeError: Header "orig-date" must be of type string, array given
231 TypeError: Header "from" must be of type string, array given
232 TypeError: Header "sender" must be of type string, array given
233 TypeError: Header "reply-to" must be of type string, array given
235 TypeError: Header "bcc" must be of type string, array given
236 TypeError: Header "message-id" must be of type string, array given
237 TypeError: Header "in-reply-to" must be of type string, array given
242 TypeError: Header "foo2" must only contain values of type string, array found