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

Uncaught Error: Undefined constant OpenSwoole\Constant::SSL_TLSv1_2 #46

Open
ghnp5 opened this issue Jun 26, 2023 · 0 comments
Open

Uncaught Error: Undefined constant OpenSwoole\Constant::SSL_TLSv1_2 #46

ghnp5 opened this issue Jun 26, 2023 · 0 comments

Comments

@ghnp5
Copy link

ghnp5 commented Jun 26, 2023

I installed openswoole:

pecl install openswoole

While most/all constants seem to exist and work, these ones in specific seem to fail:

'ssl_protocols' => \OpenSwoole\Constant::SSL_TLSv1_2 | \OpenSwoole\Constant::SSL_TLSv1_3,

It causes:

PHP Fatal error: Uncaught Error: Undefined constant OpenSwoole\Constant::SSL_TLSv1_2

They seem to be correct as per the documentation:
https://openswoole.com/docs/swoole-predefined-constants

OpenSwoole v22

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