Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32650 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3767 invoked by uid 1010); 5 Oct 2007 14:08:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3752 invoked from network); 5 Oct 2007 14:08:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2007 14:08:17 -0000 Authentication-Results: pb1.pair.com smtp.mail=ab5602@wayne.edu; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ab5602@wayne.edu; sender-id=unknown Received-SPF: error (pb1.pair.com: domain wayne.edu from 141.217.1.108 cause and error) X-PHP-List-Original-Sender: ab5602@wayne.edu X-Host-Fingerprint: 141.217.1.108 mirapointmr1.wayne.edu Received: from [141.217.1.108] ([141.217.1.108:13657] helo=mirapointmr1.wayne.edu) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/24-15771-05546074 for ; Fri, 05 Oct 2007 10:08:16 -0400 Received: from ab5602-home.local (ab5602.cc.wayne.edu [141.217.4.107]) by mirapointmr1.wayne.edu (MOS 3.8.5-GA) with ESMTP id EFY86139; Fri, 5 Oct 2007 10:08:11 -0400 (EDT) Message-ID: <4706454A.2060508@wayne.edu> Date: Fri, 05 Oct 2007 10:08:10 -0400 Organization: Wayne State University User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Antony Dovgal CC: internals@lists.php.net References: <4705E338.4020707@wayne.edu> <4705E72B.3080708@daylessday.org> In-Reply-To: <4705E72B.3080708@daylessday.org> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Junkmail-Status: score=10/60, host=mirapointmr1.wayne.edu X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090209.4706454B.0044,ss=1,fgs=0, ip=141.217.4.107, so=2007-07-31 18:51:00, dmn=5.4.3/2007-09-06 Subject: Re: [PHP-DEV] Patch for bug# 41822 From: ab5602@wayne.edu (Rob Thompson) Hi Antony, Antony Dovgal wrote: > Rob, I believe you're looking into wrong place. > You should be patching virtual_file_ex() in TSRM/tsrm_virtual_cwd.c, the root of > all evils is there as this function is used by expand_filepath() and in all other places. Ok, originally was going to try that, but, virtual_file_ex() is being truthful in this case and correctly returning false and an empty cwd when: state->cwd_length == 0 ..which is exactly what getcwd() is returning. I'm thinking that changing the tsrm_virtual_cwd code, or even the expand_filepath() functions to fake a filepath, even with an #ifdef SOLARIS may not be good style. I don't know though, I'm still learning here. > Also, as you might have noticed, we do not use system calls like open() directly, we use VCWD_xxx() wrappers for that. > They are defined in TSRM/ either. The use of the open() function was lifted right from later on in the function call where the FD for the stream is normally created. Is this something that needs to be fixed too? Thanks, -Rob