php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43877 Tempnam: absolute/relative path
Submitted: 2008-01-17 14:54 UTC Modified: 2008-01-20 14:49 UTC
From: stefano dot sanguineti at selesta dot it Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stefano dot sanguineti at selesta dot it
New email:
PHP Version: OS:

 

 [2008-01-17 14:54 UTC] stefano dot sanguineti at selesta dot it
Description:
------------
Until 5.2.3 a file created with tempnam had relative path.
After this version the file have absolute path.

Reproduce code:
---------------
PHP 5.2.3:
$report=tempnam('temp', 'report.rpt');
echo $report;
temp/report.rpt


PHP 5.2.4 and 5.2.5:
$report=tempnam('temp', 'report.rpt');
echo $report;
/usr/local/apache/htdocs/temp/report.rpt




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-20 14:49 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

.
 [2011-04-08 12:45 UTC] johnw at sussex dot ac dot uk
Stefano's report of the change in behaviour of tempnam when given a relative path 
is accurate. Therefore at the very least this change should have been mentioned in 
the change log.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 23:01:30 2024 UTC