php / php/php-src

Tempnam notice message incorrect

オープン
#20,189 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

@ndossche がすでに取り組んでいます。

2025年10月16日 から。

  • #20191 @ndossche による — オープン
Bug Category: Streams Extension: standard Status: Verified
主要言語
C
スター
40.4k
フォーク
8.1k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。