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

can you elaborate on "threadsafe" restrictions? #35

Open
boussou opened this issue Jan 5, 2021 · 0 comments
Open

can you elaborate on "threadsafe" restrictions? #35

boussou opened this issue Jan 5, 2021 · 0 comments

Comments

@boussou
Copy link

boussou commented Jan 5, 2021

In the doc you say there are limitation, but You don't say much about what this mea::

  • Global variable is unsafe in per request
    • shall we avoid using them?
    • shall it be considered as un-initialized? and reinit them each request?
  • Static variable of a class is unsafe in per request
    • shall we avoid using them?
    • shall it be considered as un-initialized? and reinit them each request?
  • Do not design singleton mode
    • very unclear why it is unsafe.
    • can you elaborate and give a faulty example?
  • The native IO function works fine, but it slows down nginx
    • can you wirte the function name explicitly?

We use PHP 5.6, it is safe to use ngx_php5 ?

Thanks

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