|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-25 06:20 UTC] soenke at ruempler dot eu
[2007-05-07 09:22 UTC] pierre dot php at gmail dot com
[2008-03-02 11:49 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
Description: ------------ Tried to compile spread with PHP 5.2. I patched it to get it work: Index: php_spread.c =================================================================== RCS file: /repository/pecl/spread/php_spread.c,v retrieving revision 1.17 diff -u -r1.17 php_spread.c --- php_spread.c 8 May 2006 14:01:55 -0000 1.17 +++ php_spread.c 25 Dec 2006 11:18:21 -0000 @@ -118,10 +118,10 @@ /* {{{ spread_class_functions */ static zend_function_entry spread_class_functions[] = { - PHP_ME_MAPPING(connect, spread_connect, NULL) - PHP_ME_MAPPING(disconnect, spread_disconnect, NULL) - PHP_ME_MAPPING(join, spread_join, NULL) - PHP_ME_MAPPING(receive, spread_receive, NULL) + PHP_ME_MAPPING(connect, spread_connect, NULL, 0) + PHP_ME_MAPPING(disconnect, spread_disconnect, NULL, 0) + PHP_ME_MAPPING(join, spread_join, NULL, 0) + PHP_ME_MAPPING(receive, spread_receive, NULL, 0) {NULL, NULL, NULL} }; /* }}} */ Reproduce code: --------------- # make ;) Expected result: ---------------- Compile ... Actual result: -------------- /bin/sh /usr/src/pecl/spread/libtool --mode=compile gcc -I. -I/usr/src/pecl/spread -DPHP_ATOM_INC -I/usr/src/pecl/spread/include -I/usr/src/pecl/spread/main -I/usr/src/pecl/spread -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/src/pecl/spread/php_spread.c -o php_spread.lo gcc -I. -I/usr/src/pecl/spread -DPHP_ATOM_INC -I/usr/src/pecl/spread/include -I/usr/src/pecl/spread/main -I/usr/src/pecl/spread -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /usr/src/pecl/spread/php_spread.c -fPIC -DPIC -o .libs/php_spread.o /usr/src/pecl/spread/php_spread.c:121:48: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given /usr/src/pecl/spread/php_spread.c:122:52: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given /usr/src/pecl/spread/php_spread.c:121: error: 'ZEND_ME_MAPPING' undeclared here (not in a function) /usr/src/pecl/spread/php_spread.c:122: error: expected '}' before 'ZEND_ME_MAPPING' /usr/src/pecl/spread/php_spread.c:123:42: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given /usr/src/pecl/spread/php_spread.c:124:48: error: macro "ZEND_ME_MAPPING" requires 4 arguments, but only 3 given /usr/src/pecl/spread/php_spread.c: In function '_connect': /usr/src/pecl/spread/php_spread.c:308: warning: passing argument 1 of 'php_error_docref0' makes pointer from integer without a cast /usr/src/pecl/spread/php_spread.c:308: warning: passing argument 2 of 'php_error_docref0' makes integer from pointer without a cast /usr/src/pecl/spread/php_spread.c: In function 'zif_spread_receive': /usr/src/pecl/spread/php_spread.c:724: warning: passing argument 6 of 'SP_receive' from incompatible pointer type