|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-04-17 10:45 UTC] jani@php.net
[2009-04-17 16:41 UTC] phpbug at danf dot oib dot com
[2009-10-07 22:37 UTC] garretts@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 20:00:02 2025 UTC |
Description: ------------ tempnam() does not create a temporary file, and silently fails. This worked fine in PHP 5.2.3, but starting failing in 5.2.6 (or somewhere in between). It still does not work in 5.2.8 or 5.2.9-1. I've tested with both the IIS module (php5isapi.dll) and php-cgi.exe, with the same results. open_basedir is off. Reproduce code: --------------- <?php $tempnam = tempnam('','random') or die("Can't create tmpfile.\n"); echo "Successfully created $tempnam.\n"; ?> Expected result: ---------------- Successfully created D:\temp\ran1E42.tmp. Actual result: -------------- Can't create tmpfile.