Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php8.0编译不过去 #11

Open
dengcb opened this issue Mar 5, 2021 · 1 comment
Open

php8.0编译不过去 #11

dengcb opened this issue Mar 5, 2021 · 1 comment

Comments

@dengcb
Copy link

dengcb commented Mar 5, 2021

怎么办

@dengcb
Copy link
Author

dengcb commented Mar 5, 2021

/root/geohash/geohash.c: In function ‘zif_geohash_encode’:
/root/geohash/geohash.c:202:47: error: expected ‘)’ before ‘TSRMLS_CC’
  202 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &latitude, &longitude, &precision) == FAILURE) {
      |                                               ^~~~~~~~~
/root/geohash/geohash.c:202:9: error: too few arguments to function ‘zend_parse_parameters’
  202 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "dd|l", &latitude, &longitude, &precision) == FAILURE) {
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20200930/main/php.h:36,
                 from /root/geohash/geohash.c:25:
/usr/include/php/20200930/Zend/zend_API.h:304:22: note: declared here
  304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
      |                      ^~~~~~~~~~~~~~~~~~~~~
/root/geohash/geohash.c:208:31: error: expected ‘)’ before ‘TSRMLS_CC’
  208 |         php_error_docref(NULL TSRMLS_CC, E_NOTICE, "latitude range -90.0 to 90.0, now: %f", latitude);
      |                               ^~~~~~~~~
/root/geohash/geohash.c:208:9: error: too few arguments to function ‘php_error_docref’
  208 |         php_error_docref(NULL TSRMLS_CC, E_NOTICE, "latitude range -90.0 to 90.0, now: %f", latitude);
      |         ^~~~~~~~~~~~~~~~
In file included from /root/geohash/geohash.c:25:
/usr/include/php/20200930/main/php.h:342:23: note: declared here
  342 | PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
      |                       ^~~~~~~~~~~~~~~~
/root/geohash/geohash.c:213:31: error: expected ‘)’ before ‘TSRMLS_CC’
  213 |         php_error_docref(NULL TSRMLS_CC, E_NOTICE, "longitude range -180.0 to 180.0, now: %f", longitude);
      |                               ^~~~~~~~~
/root/geohash/geohash.c:213:9: error: too few arguments to function ‘php_error_docref’
  213 |         php_error_docref(NULL TSRMLS_CC, E_NOTICE, "longitude range -180.0 to 180.0, now: %f", longitude);
      |         ^~~~~~~~~~~~~~~~
In file included from /root/geohash/geohash.c:25:
/usr/include/php/20200930/main/php.h:342:23: note: declared here
  342 | PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
      |                       ^~~~~~~~~~~~~~~~
/root/geohash/geohash.c: In function ‘zif_geohash_decode’:
/root/geohash/geohash.c:233:47: error: expected ‘)’ before ‘TSRMLS_CC’
  233 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hash, &hash_len) == FAILURE) {
      |                                               ^~~~~~~~~
/root/geohash/geohash.c:233:9: error: too few arguments to function ‘zend_parse_parameters’
  233 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &hash, &hash_len) == FAILURE) {
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20200930/main/php.h:36,
                 from /root/geohash/geohash.c:25:
/usr/include/php/20200930/Zend/zend_API.h:304:22: note: declared here
  304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
      |                      ^~~~~~~~~~~~~~~~~~~~~
/root/geohash/geohash.c: In function ‘zif_geohash_neighbors’:
/root/geohash/geohash.c:255:47: error: expected ‘)’ before ‘TSRMLS_CC’
  255 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &hash, &hash_len) == FAILURE) {
      |                                               ^~~~~~~~~
/root/geohash/geohash.c:255:9: error: too few arguments to function ‘zend_parse_parameters’
  255 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &hash, &hash_len) == FAILURE) {
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20200930/main/php.h:36,
                 from /root/geohash/geohash.c:25:
/usr/include/php/20200930/Zend/zend_API.h:304:22: note: declared here
  304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
      |                      ^~~~~~~~~~~~~~~~~~~~~
/root/geohash/geohash.c: In function ‘zif_geohash_dimension’:
/root/geohash/geohash.c:280:47: error: expected ‘)’ before ‘TSRMLS_CC’
  280 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &precision) == FAILURE) {
      |                                               ^~~~~~~~~
/root/geohash/geohash.c:280:9: error: too few arguments to function ‘zend_parse_parameters’
  280 |     if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &precision) == FAILURE) {
      |         ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/php/20200930/main/php.h:36,
                 from /root/geohash/geohash.c:25:
/usr/include/php/20200930/Zend/zend_API.h:304:22: note: declared here
  304 | ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
      |                      ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:208: geohash.lo] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant