You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently upgraded to PHP8.0 and want to install this extension. Everything works fine until I hit the make command when in the secp256k1-php/sec256k1 folder.
This is the error I'm seeing:
/secp256k1-php/secp256k1/secp256k1.c:1995:47: error: expected ‘)’ before ‘TSRMLS_CC’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz/rS|flz",
^~~~~~~~~
/secp256k1-php/secp256k1/secp256k1.c:1995:9: error: too few arguments to function ‘zend_parse_parameters’
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz/rS|flz",
^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20200930/main/php.h:36:0,
from /secp256k1-php/secp256k1/secp256k1.c:7:
/usr/include/php/20200930/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
I don't know anything about C or PHP extensions so I don't know where to start to try and fix this. Can anyone help?
The text was updated successfully, but these errors were encountered:
Hmm, I haven't tried it out on PHP8 yet. FYI, if you're interested, that line is using macros which make the code look extra weird ;)
I'll try get to this a little later on. Normally there aren't significant differences, just a new function name or slightly different args. If anyone's looking at this sooner, there's probably some clues about this here: https://github.com/php/php-src/tree/master/ext/
Hello there,
Recently upgraded to PHP8.0 and want to install this extension. Everything works fine until I hit the
make
command when in thesecp256k1-php/sec256k1
folder.This is the error I'm seeing:
I don't know anything about C or PHP extensions so I don't know where to start to try and fix this. Can anyone help?
The text was updated successfully, but these errors were encountered: