[php-src] Issue #20189: Tempnam notice message incorrect
| From: | RV7PR | Date: | Thu, 16 Oct 2025 12:45:37 +0000 |
| Subject: | [php-src] Issue #20189: Tempnam notice message incorrect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-251074@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/20189
Author: RV7PR
### Description
The following code:
```php
<?php
tempnam(sys_get_temp_dir(), '');
// sys_get_temp_dir() = '/tmp'
```
Resulted in this output:
```
false
```
```
tempnam(): file created in the system's temporary directory
```
But I expected this output instead:
```
Correct error message
```
### PHP Version
```plain
PHP 8.4.13 (cli) (built: Oct 7 2025 06:01:58) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.4.13, Copyright (c) Zend Technologies
with Zend OPcache v8.4.13, Copyright (c), by Zend Technologies
```
### Operating System
CentOS Stream release 9