Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37176 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76540 invoked from network); 22 Apr 2008 15:46:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Apr 2008 15:46:55 -0000 Authentication-Results: pb1.pair.com header.from=scott@macvicar.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@macvicar.net; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain macvicar.net from 72.232.140.210 cause and error) X-PHP-List-Original-Sender: scott@macvicar.net X-Host-Fingerprint: 72.232.140.210 midden.org.uk Received: from [72.232.140.210] ([72.232.140.210:60839] helo=lovelace.midden.org.uk) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/A3-59922-B680E084 for ; Tue, 22 Apr 2008 11:46:53 -0400 Received: from office.vbulletin.com ([217.155.246.60] helo=[10.0.0.116]) by lovelace.midden.org.uk with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JoKhi-0008Ef-EB; Tue, 22 Apr 2008 16:46:46 +0100 Message-ID: <480E085D.3070006@macvicar.net> Date: Tue, 22 Apr 2008 16:46:37 +0100 User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: RQuadling@GoogleMail.com CC: PHP Developers Mailing List References: <10845a340804220837w4037d72fw1e291f89d2feee19@mail.gmail.com> In-Reply-To: <10845a340804220837w4037d72fw1e291f89d2feee19@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Recent readdir.h From: scott@macvicar.net (Scott MacVicar) It's working fine here on VC6 and 2005 on XP. afaik the code was only there to deal with older versions of Windows that didn't have _WINNT32_WINNT defined. More investigation is needed to see what exactly is broken. We may just need to rebuild some of the things in zip.zip again. Scott Richard Quadling wrote: > Hi. > > The recent commit to TSRM/readdir.h isn't quite right. > > The later versions of the MS VC compiler set _WINNT32_WINNT to 0x600. > > This causes problems later on in fopen_wrappers.c > > fopen_wrappers.c > C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2tcpip.h(583) : > error C2373: 'inet_pton' : redefinition; different type modifiers > ..\php_build\include\arpa/inet.h(96) : see declaration of 'inet_pton' > > C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2tcpip.h(600) : > error C2373: 'inet_ntop' : redefinition; different type modifiers > ..\php_build\include\arpa/inet.h(97) : see declaration of 'inet_ntop' > > Changing readdir.h so that it simply undef _WIN32_WINNT first, > preserves PHP's value for this constant. > > I've attached patches for 5.3 and head (HEAD is untested). > > By adding and removing the patches, I can get 5.3 to compile or not. > > This will only be a problem when using a MS compiler which supplies a > _WIN32_WINNT > 0x0400. > > And as I'm following the new PHP documentation on compiling PHP for > windows, I hope this gets in. > > Regards, > > Richard. > > >