Kirby support: possible conflict with Kirby go() function and swoole extension go() function.
See original GitHub issueBug report
- Version: vercel-php@0.3.1
- URL: https://kirby-test.vercel.app/
- Repository: https://github.com/dadambickford/kirby_test
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:
- Created 3 years ago
- Comments:7
Top GitHub Comments
Add
swoole.use_shortname=Off
to yourphp.ini
file. It will make Swoole skip thego()
function creation.@leocavalcante It works for me. Can you confirm it @dadambickford ?