Issue: https://github.com/php/php-src/issues/7777
Author: huye
### Description
The following code:
```php
<?php
header('Access-Control-Allow-Origin: *');
header("Access-Control-Expose-Headers: Content-Disposition");
header('Access-Control-Origin: xxx.hoo.com');
die('header test');
```
Resulted in this output:
```
I used the curl -I command to test, but did not output the first header.
```
But I expected this output instead:
```
```
### PHP Version
PHP 7.4.3
### Operating System
kde neon / Ubuntu 20.04.3 LTS