3 ms·
> 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-i
by maratd 14y ago
> 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.
- timdorr 14y agoYep, 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.