Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64064 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46534 invoked from network); 27 Nov 2012 17:08:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Nov 2012 17:08:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=theanomaly.is@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=theanomaly.is@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.42 as permitted sender) X-PHP-List-Original-Sender: theanomaly.is@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:41472] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/09-11726-B83F4B05 for ; Tue, 27 Nov 2012 12:08:28 -0500 Received: by mail-la0-f42.google.com with SMTP id s15so10069067lag.29 for ; Tue, 27 Nov 2012 09:08:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Y9WBie3kaiEOCOzzZ7SBPN6/P1h6zSy+tx1Ezt1l+JI=; b=FaPNiPUiCxKuYgM0B24togkgskXR80Qli0WX7M6nYIfX5v3ezHZbCLxaS+h7cpvnL3 CQMZbdwTDeE2AtIWPkSBblUbIPFTty4rZ0SugNFOjX7y8YCHiH9pisV0QJPNvWDKzON/ 2jqTCkCaKsSjLwnCSBWaZa8LavkBYvwQeo7av97frBlsPREHB2BxstmufwKwfSDyDn9k vnyrFskkuNNt5Qs8Vl2PYyZrB9xJrYAbMnHP8ed7LrqAn+FxHz1id7jtPhP17Vd3mElY n/SCLPDPUphfJ1kXi5e3ZMRpLrYGls0lpY9jVCCCyi7JBaSJmLYa/rKkz2u+6bilmwlk BcRA== MIME-Version: 1.0 Received: by 10.112.9.74 with SMTP id x10mr1933110lba.59.1354036104738; Tue, 27 Nov 2012 09:08:24 -0800 (PST) Received: by 10.112.24.37 with HTTP; Tue, 27 Nov 2012 09:08:24 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Nov 2012 12:08:24 -0500 Message-ID: To: Sara Golemon Cc: PHP internals Content-Type: multipart/alternative; boundary=e0cb4efe307a09380f04cf7d19c1 Subject: Re: [PHP-DEV] [RFC] Modify tempnam() to handle directories and auto-cleanup From: theanomaly.is@gmail.com (Sherif Ramadan) --e0cb4efe307a09380f04cf7d19c1 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 26, 2012 at 4:21 PM, Sara Golemon wrote: > https://wiki.php.net/rfc/request-tempnam > > Just a bit of hand-holding for those who don't remember to clean up > their messes. > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > While I don't think there's anything wrong with this feature, I'm also wondering if maybe people that need this should be using tmpfile() instead? I understand they do slightly different things (in that one gives you an actual file name the other gives you a file handle), but I normally don't need or care about the file name if I expect my temporary file to live and die with the request. Things I usually use tempnam() for are usually things that get born with the request and don't necessarily die with it, like binary storage that's tied to the session (temporary file uploads that might be moved later or deleted). But I don't see any harm in adding this either. --e0cb4efe307a09380f04cf7d19c1--