Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47059 invoked from network); 5 Jun 2011 19:09:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Jun 2011 19:09:40 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.143 smtp143.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.143] ([67.192.241.143:56997] helo=smtp143.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/0A-26000-174DBED4 for ; Sun, 05 Jun 2011 15:09:37 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp14.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id C2D2D29A79D; Sun, 5 Jun 2011 15:09:34 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp14.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 46E0329A796; Sun, 5 Jun 2011 15:09:34 -0400 (EDT) Message-ID: <4DEBD46E.3070708@sugarcrm.com> Date: Sun, 05 Jun 2011 12:09:34 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Felipe Pena CC: Pierre Joye , PHP Internals References: <4DEB3D65.107@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] bug #39863 in trunk/5.4 From: smalyshev@sugarcrm.com (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). -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227