question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kirby support: possible conflict with Kirby go() function and swoole extension go() function.

See original GitHub issue

Bug report

Description

The PHP error is

Fatal error: Cannot redeclare go() in /var/task/user/kirby/config/helpers.php on line 222

We can not figure out the source of the original go() function that kirby is conflicting with. We’ve discovered many different forms of using PHP reflection to try and find the source with no luck - https://stackoverflow.com/questions/7026690/reconstruct-get-code-of-php-function - and posting our own question - https://stackoverflow.com/questions/64867808/get-function-definition-in-string-form-in-php

The only hint that we found is that the PHP extension swoole has a go() function that sounds like it may be the conflict (https://github.com/getkirby-v2/kirby/issues/643) however all of our attempts to disable that extension have failed, like overriding the php.ini config. Is there a way to not include that with vercel-php? maybe a past version that doesn’t have it? or any other ideas?

Thanks in advance.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
leocavalcantecommented, Feb 17, 2022

Add swoole.use_shortname=Off to your php.ini file. It will make Swoole skip the go() function creation.

0reactions
f3l1xcommented, Apr 9, 2022

@leocavalcante It works for me. Can you confirm it @dadambickford ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

possible conflict with Kirby go() function and swoole extension ...
The only hint that we found is that the PHP extension swoole has a go() function that sounds like it may be the...
Read more >
Installation issues | Kirby CMS
We are aware of the following libraries being incompatible with Kirby: Symfony VarDumper (redeclares the dump() function); Swoole Framework (redeclares the go() ......
Read more >
How to Install Open Swoole
This is the easiest and quickest way to get working with Open Swoole. ... the function Swoole\Event::add() can add the connection created by ......
Read more >
Devilbox Documentation - Read the Docs
The Devilbox is a modern dockerized LAMP and MEAN stack for local development on Linux, MacOS and Windows.
Read more >
PECL :: swoole Changelog - PHP
Improved Server::taskWaitMulti(), support coroutine environment ... + Added Swoole\Coroutine\go function (swoole/library@82f63be) (@matyhtf)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found