php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #7448 tempnam() behaviour changed from 4.0.1 to 4.0.3
Submitted: 2000-10-25 05:15 UTC Modified: 2000-11-05 13:23 UTC
From: david dot leborgne at cegetel dot fr Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.3pl1 OS: Linux 2.2.14 (redhat 6.2)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david dot leborgne at cegetel dot fr
New email:
PHP Version: OS:

 

 [2000-10-25 05:15 UTC] david dot leborgne at cegetel dot fr
<?php
$f = tempnam("/tmp","foo");
?>


With PHP 4.0.1pl2, this script will return a string, but with PHP 4.0.3pl1, it will return a string and create a temporary file.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-25 20:31 UTC] joey@php.net
This is intentional, otherwise, the returned string is not
guaranteed to continue to be a uniqe temporary filename...

This needs to be noted in docs if it isn't already.

Thanks for the report
 [2000-11-05 13:23 UTC] jmoore@php.net
Note added to the documentation
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 14 12:00:01 2026 UTC