Tempnam notice message incorrect
Aperta
Bug
Category: Streams
Extension: standard
Status: Verified
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
Description
The following code:
<?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
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.