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

E_ERROR: Cannot redeclare OpenTok\Util\array_is_list() (previously declared in/opentok/opentok/src/OpenTok/Util/Validators.php:465 #345

Open
dbrzoska opened this issue Oct 16, 2023 · 1 comment

Comments

@dbrzoska
Copy link

dbrzoska commented Oct 16, 2023

When I call generateToken method more than one time in code execution have this error.
I think function_exists does not work property fine. If you use function declaration in other function you need to add namespace.

if i change in src/OpenTok/Util/Validators.php (464 line)
if (!function_exists('array_is_list')) {
to
if (!function_exists('\OpenTok\Util\array_is_list')) {
its works fine.

Your Environment

  • Environment name and version (e.g. PHP 7.2 on nginx 1.9.1):
  • Operating System and version: ubuntu 23.10
@travhow99
Copy link

We are having the same issue with version 4.14, and have had to revert to 4.10 as a workaround at the moment.

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

2 participants