Bug #43877 [Com]: Tempnam: absolute/relative path
| From: | johnw at sussex dot ac dot uk | Date: | Fri, 08 Apr 2011 10:45:54 +0000 |
| Subject: | Bug #43877 [Com]: Tempnam: absolute/relative path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160027@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=43877&edit=1
ID: 43877
Comment by: johnw at sussex dot ac dot uk
Reported by: stefano dot sanguineti at selesta dot it
Summary: Tempnam: absolute/relative path
Status: Bogus
Type: Bug
Package: Filesystem function related
Operating System: Linux
PHP Version: 5.2.5
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-01-20 14:49:08] 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
.
------------------------------------------------------------------------
[2008-01-17 14:54:58] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=43877&edit=1