Bug #9249 Updated: tempnam() may return bad filename

From: Date: Sat, 28 Apr 2001 01:46:28 +0000
Subject: Bug #9249 Updated: tempnam() may return bad filename
Groups: php.dev 
Request: Send a blank email to php-dev+get-52673@lists.php.net to get a copy of this message
ID: 9249 Updated by: elixer Reported By: seeliger.curt@epa.gov Old-Status: Open Status: Closed Bug Type: Filesystem function related PHP Version: 4.0.4pl1 Assigned To: Comments: The sample code you provide works perfectly for me. Try with the latest cvs snapshot (http://snaps.php.net/) and see if that fixes it on your end. Sean Previous Comments: --------------------------------------------------------------------------- [2001-02-13 19:33:20] seeliger.curt@epa.gov $dir='/foo/bar/'; $prefix='prefix'; $tname=tempnam($dir, $prefix); print("tname"); prints '/foo/bar//prefiR5uKI4' It'd be nice if the first argument was checked for a final '/' before creating the file name. Thanks. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9249&edit=2

« previous php.dev (#52673) next »