News for hackers. Stuff that matters.
Re:PHP 7 Released by alphadevx on Wednesday December 02, 2015 @10:31AM (#10663509)
> A request comes in, the PHP process loads up everything, executes the request and tears down...on every single request.

It's called the "shared nothing architecture", and its by design. Nothing is shared between requests, so why _not_ tear down?

That model actually has a lot of benefits for web applications (it scales very well), and I consider it one of PHP's strong points.

Re:PHP 7 Released by brightball on Wednesday December 02, 2015 @10:41AM (#10663569)
I do to, except with heavy frameworks.
Re:PHP 7 Released by alphadevx on Wednesday December 02, 2015 @10:55AM (#10663664)
Yep you're right, its the framework bootstrapping that's the killer, especially when those frameworks are expensively parsing config files each time (Yaml, XML...).
Re:PHP 7 Released by spdionis on Wednesday December 02, 2015 @12:44PM (#10664487)
Which modern frameworks never do. The parsed data is usually cached in a php file. Then the (compiled to bytecode) files are cached in opcache. The interpreter doesn't even hit the filesystem on every request.