WordPress and the lack of request isolation prohibit PSR-7 and long running PHP web daemons with PHPFastCGI

Modern PHP applications can avoid the continuous bootstrapping on each request from client browsers by creating a daemon.

Old school PHP software like WordPress with it’s famous the_loop() that relies heavily on global variables and is thus hard or impossible to modify to work this way. All applications written in PHP can access the superglobal values and there is no way of sandboxing them.

This is why PSR-7 and other request agnostic methods are not feasible to use with WordPress applications. This is where the technical debt of WordPress might start to drag it down as a non-viable option to applications with a more sophisticated architecture.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s