Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:36498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69605 invoked from network); 25 Mar 2008 14:13:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Mar 2008 14:13:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=greg@chiaraquartet.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=greg@chiaraquartet.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain chiaraquartet.net from 38.99.98.18 cause and error) X-PHP-List-Original-Sender: greg@chiaraquartet.net X-Host-Fingerprint: 38.99.98.18 beast.bluga.net Linux 2.6 Received: from [38.99.98.18] ([38.99.98.18:47243] helo=mail.bluga.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 68/BF-27660-B7809E74 for ; Tue, 25 Mar 2008 09:13:15 -0500 Received: from mail.bluga.net (localhost.localdomain [127.0.0.1]) by mail.bluga.net (Postfix) with ESMTP id D7897C0F75C; Tue, 25 Mar 2008 07:13:12 -0700 (MST) Received: from [192.168.0.106] (CPE-76-84-4-101.neb.res.rr.com [76.84.4.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bluga.net (Postfix) with ESMTP id 56279C0F756; Tue, 25 Mar 2008 07:13:12 -0700 (MST) Message-ID: <47E90886.4080806@chiaraquartet.net> Date: Tue, 25 Mar 2008 09:13:26 -0500 User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Dmitry Stogov CC: Andi Gutmans , internals Mailing List , Stas Malyshev References: <47E2F8FA.20107@chiaraquartet.net> <47E37C42.10308@zend.com> <698DE66518E7CA45812BD18E807866CE0165A762@us-ex1.zend.net> <47E8325C.5000901@chiaraquartet.net> <47E8C3EF.4080505@zend.com> In-Reply-To: <47E8C3EF.4080505@zend.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [PHP-DEV] REMINDER - stream wrappers in include_path From: greg@chiaraquartet.net (Gregory Beaver) Dmitry Stogov wrote: > I hope it's the last iteration, but check me anyway. > The patch is based on latest Gregory's patch. > > - optimized out strncpy() calls > - zend_resolve_path() replaced with php_resolve_path() > - improved php_resolve_path() to resolve "file://..." > - fixed possible double-free issue in _php_stream_open_wrapper_ex() > > Thanks. Dmitry. > > Greg Beaver wrote: >> Andi Gutmans wrote: >>> Can we please use strlcpy() instead of strncpy()? This is a coding >>> standard we implemented years ago. >> >> obviously an easy change. FYI - this also needs to be fixed in >> fopen_with_path_rel in PHP_5_2, as I copied most of the code from >> that function. >> >> Greg works great here - commit with all due haste :) Greg