You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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:
Activity
cmb69 commentedon Jul 20, 2022
I can confirm segfaults with non-trivial scripts with apache2handler. I need to investigate closer.
cmb69 commentedon Jul 20, 2022
Simple reproducer:
Stack backtrace:
php-src/ext/random/random.c
Line 423 in c2f5bd1
status == NULLafter initialization.cmb69 commentedon Jul 20, 2022
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:
php-src/ext/random/random.c
Lines 843 to 849 in c2f5bd1
[-]PHP 8.2-beta1 Win build has networking issue[/-][+]random extension is not thread safe[/+]ophian commentedon Jul 20, 2022
I hear you Christoph... Hoping all the best. 😎
Thank you for taking all that extra time and effort to get this sorted out!
cmb69 commentedon Jul 20, 2022
Thanks for reporting! I'm consulting with the release managers on what to do about this issue.
Fix phpGH-9067: random extension is not thread safe