News for hackers. Stuff that matters.
Re:PHP Built-in web server by maratd on Monday September 10, 2012 @04:16PM (#4501986)
> I do agree that this should probably not be in the core php interpreter, though.

It isn't.

From the page:

"As of PHP 5.4.0, the CLI SAPI provides a built-in web server."

It's part of the CLI SAPI. That's the command line interface to the PHP interpreter. Which makes sense, since that's the only place you'll use it. So if you're using CGI, FastCGI, Apache module, or any other SAPI for regular PHP work, that code is not being loaded.

I'm also pretty sure you can turn it off during compilation of PHP, making it easily removable.

Re:PHP Built-in web server by timdorr on Monday September 10, 2012 @06:11PM (#4502563)
Yep, you can turn it off:

    ./configure --disable-cli
The CLI is enabled by default, so most distros have this built-in if they have a PHP 5.4 version available.