xref: /php-src/ext/standard/tests/mail/gh10990.phpt (revision 79c5b32d)
1--TEST--
2GH-10990 (mail() throws TypeError after iterating over $additional_headers array by reference)
3--INI--
4sendmail_path=rubbish 2>/dev/null
5--SKIPIF--
6<?php
7if(substr(PHP_OS, 0, 3) == "WIN")
8  die("skip Won't run on Windows");
9?>
10--FILE--
11<?php
12$from = 'test@example.com';
13$headers = ['From' => &$from];
14var_dump(mail('test@example.com', 'Test', 'Test', $headers));
15?>
16--EXPECT--
17bool(false)
18