Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52956 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 49984 invoked from network); 5 Jun 2011 19:18:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 19:18:41 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad 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.220.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:47420] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/AA-26000-096DBED4 for ; Sun, 05 Jun 2011 15:18:40 -0400 Received: by vxb40 with SMTP id 40so2665453vxb.29 for ; Sun, 05 Jun 2011 12:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=XrhxaUTvyS44eYg+I3vSuZ8JVUa84JRWQhmlD0FHNAg=; b=hVWPXVA4HZ3BugJEAN1ByZOCdXumbKgyNhth/wrW+58OdYh+l+M3ei1rH5LTZmYvKF JHvLBgGui80uQsz+zZKgG0O3ITzbtzSOKkgTPafEbYlHAKMYZxV1bPiJqz4ZJxygl1l4 3HXfm42xvHTnSRdbwy4fm4w9nVExuPoHs01Cg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pRdZ57Gm5tkPO2/pZN6HLeI4uq/rdP9tHTZktxA/v1/q8ek9Yuh6cqOjg02BeKdMxs 235+XYJTjMdQ+RaS9k9VP0TCuc7M6BCRXgE4XpVMvHvt1QlJ+2j+niv9vwa8IPa5aE5W Q9bgySMgyvub1ca/MwgdRsxL3D46a0Q8+LH7Y= MIME-Version: 1.0 Received: by 10.52.116.33 with SMTP id jt1mr5771746vdb.249.1307301517690; Sun, 05 Jun 2011 12:18:37 -0700 (PDT) Received: by 10.52.168.163 with HTTP; Sun, 5 Jun 2011 12:18:37 -0700 (PDT) In-Reply-To: References: <4DEB3D65.107@sugarcrm.com> <4DEBD46E.3070708@sugarcrm.com> Date: Sun, 5 Jun 2011 21:18:37 +0200 Message-ID: To: Felipe Pena Cc: Stas Malyshev , PHP Internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] bug #39863 in trunk/5.4 From: pierre.php@gmail.com (Pierre Joye) On Sun, Jun 5, 2011 at 9:13 PM, Felipe Pena wrote: > 2011/6/5 Stas Malyshev >> >> Hi! >> >>> Should http://felipe.ath.cx/diff/parse_arg_null_path.diff be enough >>> (beyond changing others function parse args, fixing the tests, >>> include+require part)? >>> >>> $ sapi/cli/php -r 'fopen("a\0b", "r");' >>> >>> Warning: fopen() expects parameter 1 to be valid path, string given in >>> Command line code on line 1 >> >> This should be applied not only to fopen but to any function that does >> anything with filenames (and include/require/etc. also, I guess). >> > > Of course, I was just checking if it's what you guys are thinking first. yes, that's the idea, to add a argument for zend_parse and a function/macro for other areas. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org