[php-src] PR #21942: ext/standard: Reject null bytes in parse_str()
| From: | LamentXU123 | Date: | Sun, 03 May 2026 16:46:40 +0000 |
| Subject: | [php-src] PR #21942: ext/standard: Reject null bytes in parse_str() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36000@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21942
Author: LamentXU123
```php
<?php
parse_str("a=1\0&b=2", $result);
print_r($result);
```
resulted in
```
Array
(
[a] => 1
)
```
reproduce: https://3v4l.org/UF6Pu#v
This might be the last important occurrence in the standard extension :)