-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
random extension is not thread safe #9067
Comments
I can confirm segfaults with non-trivial scripts with apache2handler. I need to investigate closer. |
Simple reproducer: <?php
session_start(); Stack backtrace:
Line 423 in c2f5bd1
|
The problem is that the new random extension doesn't implement a GINIT function and as such is not properly thread safe. I think that the following code needs to be moved (and adapted) to GINIT: Lines 843 to 849 in c2f5bd1
|
I hear you Christoph... Hoping all the best. 😎 |
Thanks for reporting! I'm consulting with the release managers on what to do about this issue. |
For thread-safety, we need to initialize global variables in GINIT (or RINIT), but not in MINIT.
Description
I am sorry for having to ask this, but I just hopped on 8..2-beta1 from QA on my local server and had the issue that all simple pages like phpinfo or my simple file system navigation worked well with it, but none of the more advanced frameworks that were doing well with 8.2-alpha-1, alpha-2 and 8.2-alpha-3 before.
Browser is set to use HTTPs and uses h2.
I turned down the server, dropped files over and restarted again
I then tried searching the UPGRADING file but could not really find the issue.
All these pages just stay as they were or when re-opening the browser just fail (with some networking issue, as if there is no internet connection), Nothing is noted in the 8.2 error_log file. I even tried adding
error_log_mode
to the ini file, with no success. So I returned to 8.2.0alpha3 for short.Anything I could try before tomorrows release?
PHP Version
PHP 8.2-beta1
Operating System
Win xampp Apache module
The text was updated successfully, but these errors were encountered: