-
Notifications
You must be signed in to change notification settings - Fork 2
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
Drupal 7? #12
Comments
I don't personally plan to try it or put other effort into it. I don't know whether or not it would be possible. |
I don't mind to give it a go, although I wanted to make sure that, given On Mon, 21 Mar 2016 18:32 KentR, notifications@github.com wrote:
|
I suspect that lack of Symfony won't be a deciding factor. @marcj would know better. As I see it, PHP-PM is somewhat like a bridge between the ReactPHP event loop and other code (Drupal, Symfony, etc…). If global users is actually the cause of the authentication problems that I found with D8, you’ll probably have the issue with D7 as well. |
For what it's worth, I have tried this, and I've gotten to a point where I can render a page. There are an indeterminate number of drupal_static() variables that will need to be reset before it works correctly. Global variables like $user, etc will have to be reset too. Also I encountered questionable practices, like defining functions in template files, that caused it to crash. |
Can you describe what you're thinking WRT "reset"? My understanding is that the app itself is running continuously, and so all requests would access the same global variables. I'd expect this to cause concurrency problems. Example:
|
Sure. I didn't mention it, but I assume that each php-pm worker is single threaded so that no two requests run in parallel on the same worker. That should keep all of Drupal's global state separate between calls. I just have to unset the variables between requests. There are probably going to be problems with anything that depends on Drupal registering shutdown functions for the php runtime. I haven't gotten that far yet. |
in terms of actually "resetting" a variable, I mostly have been calling |
Ah, you’re probably right about a single worker only handling one request at a time. I didn’t think of that. I’m looking forward to the results. |
It's a side project that I don't get to spend much time on. Drupal 7 has a very different structure from Drupal 8, so I've pretty much started it from scratch. So your changes here won't affect anything I've done. Thanks for checking, though! |
I've uploaded my code: https://github.com/bertrama/php-pm-drupal-seven Very experimental, and needs cleaning up. |
amazing Albert :-), I'll try to play with that in the next days and give On Mon, 9 May 2016 at 05:08 Albert Bertram notifications@github.com wrote:
|
would that be possible? Has anyone tried? I understand for the patches that this one is just for D8
The text was updated successfully, but these errors were encountered: