Re: New package: Functional PHP
| From: | Richard Quadling | Date: | Fri, 10 Jun 2011 09:33:39 +0000 |
| Subject: | Re: New package: Functional PHP | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8339@lists.php.net to get a copy of this message | ||
On 9 June 2011 19:06, Lars Strojny <lars@strojny.net> wrote:
> Good evening everybody,
>
> I would like to propose a new package for PECL, Functional PHP. It
> provides a number of functions for functional’ish programming like map(),
> invoke(), reduce_left(), reduce_right() and so on. License is BSD, code is
> available at https://github.com/lstrojny/functional-php/.
> Proposed name
> would be „functional“.
>
> With regards,
> Lars
I've tried doing a win32 build. I'm no expert.
I created the following config.w32 file ...
ARG_ENABLE("functional", "enable functional PHP extension", "no");
if (PHP_FUNCTIONAL != "no") {
EXTENSION("functional", "functional.c");
CFLAGS="$CFLAGS -Wall -g -O0 -pedantic -std=c99"
}
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' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2275:
'zend_class_entry' : illegal use of this type as an expression
d:\buildphp\php-src\vc9\x86\php_5_3\zend\zend.h(287) : see
declaration of 'zend_class_entry'
..\pecl\functional-php\functional.c(787) : error C2065: 'ce' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2065: 'ce' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2223: left of
'->get_iterator' must point to struct/union
..\pecl\functional-php\functional.c(787) : error C2065: 'ce' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2223: left of
'->funcs' must point to struct/union
..\pecl\functional-php\functional.c(787) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(787) : error C2223: left of
'->funcs' must point to struct/union
..\pecl\functional-php\functional.c(787) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(788) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(788) : error C2223: left of
'->funcs' must point to struct/union
..\pecl\functional-php\functional.c(788) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(788) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(788) : warning C4047: 'function' :
'zend_object_iterator *' differs in levels of indirection from 'int'
..\pecl\functional-php\functional.c(788) : warning C4024:
'zend_user_it_get_current_data' : different types for formal and
actual parameter 1
..\pecl\functional-php\functional.c(789) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(789) : warning C4047: 'function' :
'zend_object_iterator *' differs in levels of indirection from 'int'
..\pecl\functional-php\functional.c(789) : warning C4024:
'zend_user_it_get_current_key' : different types for formal and actual
parameter 1
..\pecl\functional-php\functional.c(794) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(794) : error C2223: left of
'->funcs' must point to struct/union
..\pecl\functional-php\functional.c(794) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(816) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(816) : error C2065: 'iter' :
undeclared identifier
..\pecl\functional-php\functional.c(816) : error C2223: left of
'->funcs' must point to struct/union
..\pecl\functional-php\functional.c(816) : error C2065: 'iter' :
undeclared identifier
--
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea