Re: New package: Functional PHP

From: Date: Fri, 10 Jun 2011 11:07:21 +0000
Subject: Re: New package: Functional PHP
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-8344@lists.php.net to get a copy of this message
On Fri, Jun 10, 2011 at 1:05 PM, Mikko Koppanen <mkoppanen@php.net> wrote: > On Fri, Jun 10, 2011 at 11:48 AM, Lars Strojny <lars@strojny.net> wrote: >>>During the build (VC9, x86, nts, PHP5_3-7-dev from svn) ... >>> >>>..\pecl\functional-php\functional.c(787) : error C2275: >>>'zend_object_iterator' : illegal use of this type as an expression >>>        d:\buildphp\php-src\vc9\x86\php_5_3\zend\zend_iterators.h(29) >>>: see declaration of 'zend_object_iterator' >>>..\pecl\functional-php\functional.c(787) : error C2065: 'iterŒ : >> >> [...] >> I have honestly no clue. But I¹m sure Pierre can help :) > > Hi, > > c89 requires that variables are declared in the beginning of scope and > this does not seem to be the case on line 787. I think c99 support on > visual studio is very limited. Not only in visual studio, other compilers do not support c99 at all. The bad thing is that gcc thinks it is a good idea to enable part of c99 and some other custom features by default. In any cases, part of the CS is to write c89 code. Cheers., -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

« previous php.pecl.dev (#8344) next »