Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28697 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98745 invoked by uid 1010); 6 Apr 2007 04:26:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98730 invoked from network); 6 Apr 2007 04:26:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Apr 2007 04:26:27 -0000 Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:42416] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2D/4D-13039-1FBC5164 for ; Fri, 06 Apr 2007 00:26:27 -0400 Received: from [192.168.200.104] (c-67-169-43-97.hsd1.ca.comcast.net [67.169.43.97]) (authenticated bits=0) by lerdorf.com (8.13.8/8.13.8/Debian-3) with ESMTP id l364QL1g031014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 5 Apr 2007 21:26:22 -0700 Message-ID: <4615CBEE.3060102@lerdorf.com> Date: Thu, 05 Apr 2007 21:26:22 -0700 User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: "Frank M. Kromann" CC: internals@lists.php.net References: <11758331856840000@9866357972520000.9866341568840000> In-Reply-To: <11758331856840000@9866357972520000.9866341568840000> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.90.1/3025/Thu Apr 5 19:16:37 2007 on colo X-Virus-Status: Clean Subject: Re: [PHP-DEV] flock() php_flock() compile problems From: rasmus@lerdorf.com (Rasmus Lerdorf) Frank M. Kromann wrote: > Hello Everyone, > > I hope I'm not too far off here but getting rid of flock.c in > win32\build\config.w32 an adding flock_compat to ext\standard\config.w32 > seams to solve the compile problems, at least in the 5.2 branch. Rob tracked it down to the fact that it was using stdio. I hadn't realized that. So, the fix is to use VCWD_OPEN_MODE instead of FOPEN and a write() instead of the fprintf. -Rasmus