Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64268 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99099 invoked from network); 12 Dec 2012 11:28:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Dec 2012 11:28:09 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.220.42 mail-pa0-f42.google.com Received: from [209.85.220.42] ([209.85.220.42:51519] helo=mail-pa0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/A6-54245-84A68C05 for ; Wed, 12 Dec 2012 06:28:09 -0500 Received: by mail-pa0-f42.google.com with SMTP id rl6so501883pac.29 for ; Wed, 12 Dec 2012 03:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=C3LfFKXl3r/maTbcDysgYV/z0Z0Aa6fIr9d0jLyjwgw=; b=qw91PU1iHVu/x8tnuWYGtF2sLf8KKXUrPyhgPE3i6+r+XltKrA0XB+zslS6nJ5nRGN 1EiLBn9HOgSD2Kp2FOh9qqmRK7+S0XrYDUUSIS0jFZuSu3hPhp9gMhPygJPfKFr0OvuY zGh0Mpzjax9w0mOc2UlWs05/iEnobhrY0zKw+3TRZ5ml0j3e1pElIFDPaQYAVqBNoaHS FICuT657EO8avAE2KKEA6IBQtQh3OixHNRlIvYO4o7DaLRmYa+OL1y/P2kzuTFQyQ/Kk eg3wEHB0xsacb5VBq9pbd2ERbhCBsXxMk2/uqXK/nlAb+eKLMvGQDSEEfROF16b5WgFD HBNA== MIME-Version: 1.0 Received: by 10.68.232.201 with SMTP id tq9mr1878719pbc.12.1355311685752; Wed, 12 Dec 2012 03:28:05 -0800 (PST) Received: by 10.66.86.5 with HTTP; Wed, 12 Dec 2012 03:28:05 -0800 (PST) In-Reply-To: References: Date: Wed, 12 Dec 2012 12:28:05 +0100 Message-ID: To: Amir Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] compile php extension on visual c++ 2005 From: pierre.php@gmail.com (Pierre Joye) hi, On Wed, Dec 12, 2012 at 12:18 PM, Amir wrote: > Im compiling my c++ php extension on php 5.3 and visual c++ 2008 > everything is ok and work fine, but I have to (and I force) to using php > 5.2.9 and compile it via vc++ 2005. > > I got this error during compile: > *zend\zend_config.w32.h(38) : fatal error C1083: Cannot open include file: > 'winsock2.h': No such file or directory* > * > * > I changed my windows SDK include directory, set environment variables and.. > But have still error. > > I compiled with vc++ 2008 and get another error: > *microsoft visual studio 8\vc\include\sys\stat.inl(44) : error C2466: > cannot allocate an array of constant size 0* Sorry but we do not support anything under VC9 (2008). PHP 5.2, while being dead since years, never supported anything but VC6. Cheers, -- Pierre @pierrejoye