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

GearmanClient::addServer(): Parameter host has null default, but is not nullable #38

Closed
mlocati opened this issue Jan 7, 2025 · 4 comments

Comments

@mlocati
Copy link

mlocati commented Jan 7, 2025

When installing gearman on PHP 8.4 (Alpine 3.20) with PECL, I have the following error:

running: make -j4 INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuservmufg9jenu9e7HAGPDb/install-gearman-2.1.3" install
  Parse /tmp/pear/temp/gearman/gearman.stub.php to generate /tmp/pear/temp/gearman/gearman_arginfo.h
  Connecting to github.com (140.82.112.3:443)
  Connecting to codeload.github.com (140.82.113.9:443)
  saving to 'v5.0.0.tar.gz'
  v5.0.0.tar.gz        100% |********************************|  141k  0:00:00 ETA
  'v5.0.0.tar.gz' saved
  PHP-Parser-5.0.0/.php-cs-fixer.dist.php
  [...]
  PHP-Parser-5.0.0/phpstan.neon.dist
  In /tmp/pear/temp/gearman/gearman.stub.php:
  GearmanClient::addServer(): Parameter host has null default, but is not nullable
  make: *** [Makefile:191: /tmp/pear/temp/gearman/gearman_arginfo.h] Error 1
  ERROR: `make -j4 INSTALL_ROOT="/tmp/pear/temp/pear-build-defaultuservmufg9jenu9e7HAGPDb/install-gearman-2.1.3" install' failed
@mykiwi
Copy link
Contributor

mykiwi commented Jan 7, 2025

Maybe #33 will fix it?

@mlocati
Copy link
Author

mlocati commented Jan 7, 2025

Maybe #33 will fix it?

I think so

@esabol
Copy link
Contributor

esabol commented Jan 7, 2025

Ah, yes, I reported this here: #9 (comment)

I think the bigger problem is that gearman_arginfo.h and gearman.stub.php have become out of sync.

@rlerdorf
Copy link
Member

rlerdorf commented Jan 7, 2025

fixed

@rlerdorf rlerdorf closed this as completed Jan 7, 2025
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

4 participants