[php-src] Issue #14944: Invalid PHP header with PHP.INI expose_php = On
| From: | guyphp1 | Date: | Sat, 13 Jul 2024 15:59:41 +0000 |
| Subject: | [php-src] Issue #14944: Invalid PHP header with PHP.INI expose_php = On | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247289@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/14944
Author: guyphp1
### Description
The following code:
<?php
if (!headers_sent()):
foreach (headers_list() as $header)
echo $header;
header_remove($header);
endif;
Resulted in this output:
X-Powered-By: PHP/8.4.0alpha1
Warning: Header to delete may not contain colon. in C:\WWW_330_TEST\tests\h.php on line 5
```
But I expected this output instead:
No error message
```
```
### PHP Version
PHP/8.4.0alpha1 64bit TS
### Operating System
Windows 11 64bits