Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55644 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60453 invoked from network); 28 Sep 2011 07:28:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2011 07:28:24 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.213.42 mail-yw0-f42.google.com Received: from [209.85.213.42] ([209.85.213.42:34754] helo=mail-yw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 93/C1-49539-69CC28E4 for ; Wed, 28 Sep 2011 03:28:22 -0400 Received: by ywa8 with SMTP id 8so7204976ywa.29 for ; Wed, 28 Sep 2011 00:28:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=8ECKhFKRIy6pBYVZYHvQdQDkt/X3ZW7lB96//M+msTU=; b=Dvgj79OMebwJuHJ4s+px0gZOOg9JtBAxyXxG64uJOZxa4eAv6jzdsSosnVyuhO3hqy E1kHZXEZpbmPbfQstqedyydetm+c9x641sY5L8QHEnK4D4mJ0AAPTYPbtjNVzciSNh3w LJJPA+14QUjJu5WoIYAcaCiLzq1PjCFBy1pPw= MIME-Version: 1.0 Received: by 10.236.178.10 with SMTP id e10mr9573332yhm.31.1317194897435; Wed, 28 Sep 2011 00:28:17 -0700 (PDT) Received: by 10.147.169.18 with HTTP; Wed, 28 Sep 2011 00:28:17 -0700 (PDT) In-Reply-To: <4E82C679.9030800@thelounge.net> References: <4E81902E.1020304@thelounge.net> <4E824B36.4040209@gmail.com> <4E824BF7.9070405@thelounge.net> <4E824F69.1010703@gmail.com> <4E825084.4040703@thelounge.net> <4E82B825.5060003@daylessday.org> <4E82C679.9030800@thelounge.net> Date: Wed, 28 Sep 2011 09:28:17 +0200 Message-ID: To: Reindl Harald Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] open_basedir bypass -> errata tempnam() From: pierre.php@gmail.com (Pierre Joye) On Wed, Sep 28, 2011 at 9:02 AM, Reindl Harald wro= te: > =A0$tmp_name =3D str_replace("\\", '/', tempnam($temp_folder, 'rhcsv')); Side note: this is never necessary, php does it for you. Unless you store paths yourself before calling a php file function. --=20 Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org